Package com.botwAdventureOnline
Klasse Field
java.lang.Object
com.botwAdventureOnline.Field
- Alle implementierten Schnittstellen:
Serializable
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addHestu()
Adds Hestu to the fieldvoid
addKorok()
Adds a korok to the fieldvoid
Adds an Item to the lootvoid
Adds the Master Sword to the fieldvoid
Lets you buy from the merchant if the field contains a merchant and has no monsters in itstatic Field
Generates a new field with random monsters and lootgetHestu()
getLoot()
boolean
void
Prints everything the field containsvoid
Removes Hestu from the fieldvoid
Removes one korok from the fieldvoid
removeLoot
(Item item) Removes an Item to the lootvoid
Lets you sell to the merchant if the field contains a merchant and has no monsters in it
-
Konstruktordetails
-
Field
- Parameter:
pMonsters
- Sets the monsters in the fieldpMerchant
- Sets the merchant in the fieldpLoot
- Sets the loot in the field
-
Field
- Parameter:
pMonsters
- Sets the monsters in the fieldpLoot
- Sets the loot in the field
-
-
Methodendetails
-
getMonsters
- Gibt zurück:
- Returns the monsters in the field
-
getHestu
- Gibt zurück:
- Returns hestu
-
getLoot
- Gibt zurück:
- Returns the loot in the field
-
addLoot
Adds an Item to the loot- Parameter:
item
- The Item to add to the loot
-
removeLoot
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
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
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
Generates a new field with random monsters and loot- Gibt zurück:
- A Field object
-
getMerchant
-
getKoroks
-