Package com.botwAdventureOnline
Klasse GameMap
java.lang.Object
com.botwAdventureOnline.GameMap
- Alle implementierten Schnittstellen:
Serializable
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addHestu
(int x, int y) void
void
void
Moves the player back to next field and has a 10% chance of adding a korok to the fieldvoid
void
Sets the player's position to a random positionvoid
Moves the player up to next field and has a 10% chance of adding a korok to the fieldvoid
Prints out the player's current positiongetEnemies
(Player player) getField
(int playerX, int playerY) int
boolean
int
getWidth()
boolean
void
Moves the player left to next field and has a 10% chance of adding a korok to the fieldvoid
printState
(Player player) void
void
removeKorok
(Player player) void
removeLoot
(Player player, Item item) void
Moves 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
-