Klasse GameMap

java.lang.Object
com.botwAdventureOnline.GameMap
Alle implementierten Schnittstellen:
Serializable

public class GameMap extends Object implements Serializable
Siehe auch:
  • Konstruktordetails

    • GameMap

      public GameMap(int pWidth, int pHeight)
      Parameter:
      pWidth - Sets the width of the map
      pHeight - Sets the height of the map
  • Methodendetails

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • addLoot

      public void addLoot(Player player, Item item)
    • hasKorok

      public boolean hasKorok(Player player)
    • removeKorok

      public void removeKorok(Player player)
    • getHestu

      public boolean getHestu(Player player)
      Gibt zurück:
      Returns true if the field of the player's current position contains Hestu
    • printState

      public void printState(Player player)
    • forward

      public void forward(Player player)
      Moves the player up to next field and has a 10% chance of adding a korok to the field
    • backward

      public void backward(Player player)
      Moves the player back to next field and has a 10% chance of adding a korok to the field
    • right

      public void right(Player player)
      Moves the player right to next field and has a 10% chance of adding a korok to the field
    • left

      public void left(Player player)
      Moves the player left to next field and has a 10% chance of adding a korok to the field
    • getEnemies

      public ArrayList<Monster> getEnemies(Player player)
    • getCords

      public void getCords(Player player)
      Prints out the player's current position
    • sell

      public void sell(Player player, Inventory inventory)
    • buy

      public void buy(Player player, Inventory inventory)
    • addHestu

      public void addHestu(int x, int y)
    • removeHestu

      public void removeHestu()
    • addMasterSword

      public void addMasterSword()
    • dig

      public void dig(Player player)
      Sets the player's position to a random position
    • getLoot

      public ArrayList<Item> getLoot(Player player)
    • removeLoot

      public void removeLoot(Player player, Item item)
    • getField

      public Field getField(int playerX, int playerY)