Package com.botwAdventureOnline
Klasse Field
java.lang.Object
com.botwAdventureOnline.Field
- Alle implementierten Schnittstellen:
- Serializable
- Siehe auch:
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungvoidaddHestu()Adds Hestu to the fieldvoidaddKorok()Adds a korok to the fieldvoidAdds an Item to the lootvoidAdds the Master Sword to the fieldvoidLets you buy from the merchant if the field contains a merchant and has no monsters in itstatic FieldGenerates a new field with random monsters and lootgetHestu()getLoot()booleanvoidPrints everything the field containsvoidRemoves Hestu from the fieldvoidRemoves one korok from the fieldvoidremoveLoot(Item item) Removes an Item to the lootvoidLets 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 field
- pMerchant- Sets the merchant in the field
- pLoot- Sets the loot in the field
 
- 
Field- Parameter:
- pMonsters- Sets the monsters in the field
- pLoot- 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
 
- 
addLootAdds an Item to the loot- Parameter:
- item- The Item to add to the loot
 
- 
removeLootRemoves an Item to the loot- Parameter:
- item- The Item to remove to the loot
 
- 
hasKorokspublic boolean hasKoroks()- Gibt zurück:
- Returns if the field contains koroks
 
- 
removeKorokpublic void removeKorok()Removes one korok from the field
- 
addKorokpublic void addKorok()Adds a korok to the field
- 
addHestupublic void addHestu()Adds Hestu to the field
- 
removeHestupublic void removeHestu()Removes Hestu from the field
- 
addMasterSwordpublic void addMasterSword()Adds the Master Sword to the field
- 
buyLets you buy from the merchant if the field contains a merchant and has no monsters in it- Parameter:
- pInventory- The player's inventory
 
- 
sellLets you sell to the merchant if the field contains a merchant and has no monsters in it- Parameter:
- pInventory- The player's inventory
 
- 
printStatepublic void printState()Prints everything the field contains
- 
generateFieldGenerates a new field with random monsters and loot- Gibt zurück:
- A Field object
 
- 
getMerchant
- 
getKoroks
 
-