Package com.botwAdventureOnline
Klasse GameMap
java.lang.Object
com.botwAdventureOnline.GameMap
- Alle implementierten Schnittstellen:
- Serializable
- Siehe auch:
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer 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- 
GameMappublic GameMap(int pWidth, int pHeight) - Parameter:
- pWidth- Sets the width of the map
- pHeight- Sets the height of the map
 
 
- 
- 
Methodendetails- 
getWidthpublic int getWidth()
- 
getHeightpublic int getHeight()
- 
addLoot
- 
hasKorok
- 
removeKorok
- 
getHestu- Gibt zurück:
- Returns true if the field of the player's current position contains Hestu
 
- 
printState
- 
forwardMoves the player up to next field and has a 10% chance of adding a korok to the field
- 
backwardMoves the player back to next field and has a 10% chance of adding a korok to the field
- 
rightMoves the player right to next field and has a 10% chance of adding a korok to the field
- 
leftMoves the player left to next field and has a 10% chance of adding a korok to the field
- 
getEnemies
- 
getCordsPrints out the player's current position
- 
sell
- 
buy
- 
addHestupublic void addHestu(int x, int y) 
- 
removeHestupublic void removeHestu()
- 
addMasterSwordpublic void addMasterSword()
- 
digSets the player's position to a random position
- 
getLoot
- 
removeLoot
- 
getField
 
-