Class Item

Direct Known Subclasses:
HealthPotion, MegaPotion, UpgradeToken

public abstract class Item extends Object
An item represents something that can be used in some manner to change something about the game environment

Items can be used on characters, change something about a battle, or alter something else about the game.

  • Constructor Details

    • Item

      public Item(@NotNull @NotNull String name)
      Creates a new instance of item
      name - the name of the item
  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Returns the name of this item
      the name of this item