Klasse Field

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

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

    • Field

      public Field(ArrayList<Monster> pMonsters, Merchant pMerchant, ArrayList<Item> pLoot)
      Parameter:
      pMonsters - Sets the monsters in the field
      pMerchant - Sets the merchant in the field
      pLoot - Sets the loot in the field
    • Field

      public Field(ArrayList<Monster> pMonsters, ArrayList<Item> pLoot)
      Parameter:
      pMonsters - Sets the monsters in the field
      pLoot - Sets the loot in the field
  • Methodendetails

    • getMonsters

      public ArrayList<Monster> getMonsters()
      Gibt zurück:
      Returns the monsters in the field
    • getHestu

      public Hestu getHestu()
      Gibt zurück:
      Returns hestu
    • getLoot

      public ArrayList<Item> getLoot()
      Gibt zurück:
      Returns the loot in the field
    • addLoot

      public void addLoot(Item item)
      Adds an Item to the loot
      Parameter:
      item - The Item to add to the loot
    • removeLoot

      public void removeLoot(Item item)
      Removes an Item to the loot
      Parameter:
      item - The Item to remove to the loot
    • hasKoroks

      public boolean hasKoroks()
      Gibt zurück:
      Returns if the field contains koroks
    • removeKorok

      public void removeKorok()
      Removes one korok from the field
    • addKorok

      public void addKorok()
      Adds a korok to the field
    • addHestu

      public void addHestu()
      Adds Hestu to the field
    • removeHestu

      public void removeHestu()
      Removes Hestu from the field
    • addMasterSword

      public void addMasterSword()
      Adds the Master Sword to the field
    • buy

      public void buy(Inventory pInventory)
      Lets you buy from the merchant if the field contains a merchant and has no monsters in it
      Parameter:
      pInventory - The player's inventory
    • sell

      public void sell(Inventory pInventory)
      Lets you sell to the merchant if the field contains a merchant and has no monsters in it
      Parameter:
      pInventory - The player's inventory
    • printState

      public void printState()
      Prints everything the field contains
    • generateField

      public static Field generateField()
      Generates a new field with random monsters and loot
      Gibt zurück:
      A Field object
    • getMerchant

      public Merchant getMerchant()
    • getKoroks

      public ArrayList<Korok> getKoroks()