Package com.botwAdventureOnline
Klasse GameMap
java.lang.Object
com.botwAdventureOnline.GameMap
- Alle implementierten Schnittstellen:
Serializable
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddHestu(int x, int y) voidvoidvoidMoves the player back to next field and has a 10% chance of adding a korok to the fieldvoidvoidSets the player's position to a random positionvoidMoves the player up to next field and has a 10% chance of adding a korok to the fieldvoidPrints out the player's current positiongetEnemies(Player player) getField(int playerX, int playerY) intbooleanintgetWidth()booleanvoidMoves the player left to next field and has a 10% chance of adding a korok to the fieldvoidprintState(Player player) voidvoidremoveKorok(Player player) voidremoveLoot(Player player, Item item) voidMoves the player right to next field and has a 10% chance of adding a korok to the fieldvoid
-
Konstruktordetails
-
GameMap
public GameMap(int pWidth, int pHeight) - Parameter:
pWidth- Sets the width of the mappHeight- Sets the height of the map
-
-
Methodendetails
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
addLoot
-
hasKorok
-
removeKorok
-
getHestu
- Gibt zurück:
- Returns true if the field of the player's current position contains Hestu
-
printState
-
forward
Moves the player up to next field and has a 10% chance of adding a korok to the field -
backward
Moves the player back to next field and has a 10% chance of adding a korok to the field -
right
Moves the player right to next field and has a 10% chance of adding a korok to the field -
left
Moves the player left to next field and has a 10% chance of adding a korok to the field -
getEnemies
-
getCords
Prints out the player's current position -
sell
-
buy
-
addHestu
public void addHestu(int x, int y) -
removeHestu
public void removeHestu() -
addMasterSword
public void addMasterSword() -
dig
Sets the player's position to a random position -
getLoot
-
removeLoot
-
getField
-