Klasse Item

java.lang.Object
com.botwAdventureOnline.Item
Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
Potion, Sword

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

    • Item

      public Item(String pName, int pWeight, int pValue, int pExperiencePoints, int pHealthPoints, int pDamage)
      Parameter:
      pName - Name of the item
      pWeight - Weight of the item
      pValue - Value of the item in rupees
      pExperiencePoints - Experience points if the item is an Experience Potion
      pHealthPoints - Health points if the item is a Health Potion
      pDamage - Damage if the item is a Sword
  • Methodendetails

    • getName

      public String getName()
      Gibt zurück:
      Returns the name of the item
    • getWeightInt

      public int getWeightInt()
      Gibt zurück:
      Returns the weight of the item
    • getValue

      public String 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

      public String 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

      public String 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

      public String 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