Package com.botwAdventureOnline
Klasse Item
java.lang.Object
com.botwAdventureOnline.Item
- Alle implementierten Schnittstellen:
Serializable
- Siehe auch:
-
Konstruktordetails
-
Item
public Item(String pName, int pWeight, int pValue, int pExperiencePoints, int pHealthPoints, int pDamage) - Parameter:
pName
- Name of the itempWeight
- Weight of the itempValue
- Value of the item in rupeespExperiencePoints
- Experience points if the item is an Experience PotionpHealthPoints
- Health points if the item is a Health PotionpDamage
- Damage if the item is a Sword
-
-
Methodendetails
-
getName
- Gibt zurück:
- Returns the name of the item
-
getWeightInt
public int getWeightInt()- Gibt zurück:
- Returns the weight of the item
-
getValue
- Gibt zurück:
- Returns the value of the item in rupees
-
getValueInt
public int getValueInt()- Gibt zurück:
- Returns the value of the item in rupees as Integer
-
getExperiencePoints
- Gibt zurück:
- Returns the amount of experience points if the item is an Experience Potion
-
getExperiencePointsInt
public int getExperiencePointsInt()- Gibt zurück:
- Returns the amount of experience points if the item is an Experience Potion as Integer
-
getHealthPoints
- Gibt zurück:
- Returns the amount of health points if the item is a Health Potion
-
getHealthPointsInt
public int getHealthPointsInt()- Gibt zurück:
- Returns the amount of health points if the item is a Health Potion as Integer
-
getDamage
- Gibt zurück:
- Returns the amount of damage if the item is a Sword
-
getDamageInt
public int getDamageInt()- Gibt zurück:
- Returns the amount of damage if the item is a Sword as Integer
-