Class Item

java.lang.Object
ActiverseEngine.Item

public abstract class Item extends Object
Represents an item in the Activerse game engine. Each item has a name, type, and value.
Version:
1.4.0
Author:
Knivier
  • Constructor Details

    • Item

      public Item(String name, String type, int value)
      Constructor for items inside an inventory. All inventory items must go under the Item class
      Parameters:
      name - The name of the item
      type - The classification you give the item (ex: heal etc)
      value - The value you give (strength, modifier, etc)
  • Method Details

    • getName

      public String getName()
      Returns the name of the item
      Returns:
      String item name
    • getType

      public String getType()
      For implementation
      Returns:
      String type of item
    • getValue

      public int getValue()
      Returns the value as signed and serialized of type item
      Returns:
      Value none defined
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • use

      public abstract void use()
      Action that the item does to something