Package com.botwAdventureOnline
Klasse Inventory
java.lang.Object
com.botwAdventureOnline.Inventory
- Alle implementierten Schnittstellen:
- Serializable
- Siehe auch:
- 
FeldübersichtFelderModifizierer und TypFeldBeschreibungThe currently equipped sword of the player
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungvoidvoidintintintintdoublegetUsage()intvoidremovePotion(Item item) voidremoveSword(Item item) voidsetEquippedSword(Item equippedSword) Sets the equipped sword of the playervoidsetKorokSeeds(int korokSeeds) voidsetMaxWeight(int maxWeight) voidsetRupees(int pRupees) voidsetWeight(int weight) 
- 
Felddetails- 
equippedSwordThe currently equipped sword of the player
 
- 
- 
Konstruktordetails- 
Inventorypublic Inventory(int pMaxWeight) - Parameter:
- pMaxWeight- The maximum weight of the player at the start of the game
 
 
- 
- 
Methodendetails- 
getPotions- Gibt zurück:
- Returns the Potions
 
- 
getEquippedSword- Gibt zurück:
- Returns the equipped sword
 
- 
setEquippedSwordSets the equipped sword of the player- Parameter:
- equippedSword- The new equipped sword
 
- 
addPotion- Parameter:
- potion- The Potion that gets added to the player's potions
 
- 
getSwords- Gibt zurück:
- returns the swords
 
- 
addSword- Parameter:
- sword- The sword that gets added to the player's swords
 
- 
getMaxWeightpublic int getMaxWeight()- Gibt zurück:
- Returns the maximum weight of the inventory
 
- 
getWeightpublic int getWeight()- Gibt zurück:
- Returns the current weight of the inventory
 
- 
getRupeespublic int getRupees()- Gibt zurück:
- Returns the rupees of the player
 
- 
setRupeespublic void setRupees(int pRupees) - Parameter:
- pRupees- The new amount of rupees
 
- 
setKorokSeedspublic void setKorokSeeds(int korokSeeds) - Parameter:
- korokSeeds- The new amount of korokseeds
 
- 
getUsagepublic double getUsage()- Gibt zurück:
- Returns the percentage of the weight's usage
 
- 
getKorokSeedspublic int getKorokSeeds()- Gibt zurück:
- Returns the amount of korokseeds the player has
 
- 
setMaxWeightpublic void setMaxWeight(int maxWeight) - Parameter:
- maxWeight- The new maximum weight of the inventory
 
- 
setWeightpublic void setWeight(int weight) - Parameter:
- weight- The new current weight of the inventory
 
- 
removePotion- Parameter:
- item- Potion that gets removed from the player's potions
 
- 
removeSword- Parameter:
- item- Sword that gets removed from the player's swords
 
- 
getItemCountpublic int getItemCount()- Gibt zurück:
- Return the amount of potions and swords in total
 
 
-