Enum Class ItemTypes

java.lang.Object
java.lang.Enum<ItemTypes>
com.csse3200.game.entities.configs.ItemTypes
All Implemented Interfaces:
Serializable, Comparable<ItemTypes>, Constable

public enum ItemTypes extends Enum<ItemTypes>
  • Enum Constant Details

    • NONE

      public static final ItemTypes NONE
    • MELEE

      public static final ItemTypes MELEE
    • RANGED

      public static final ItemTypes RANGED
    • PROJECTILE

      public static final ItemTypes PROJECTILE
    • CONSUMABLE

      public static final ItemTypes CONSUMABLE
    • BENCH

      public static final ItemTypes BENCH
    • HEALTH_BENCH

      public static final ItemTypes HEALTH_BENCH
    • COMPUTER_BENCH

      public static final ItemTypes COMPUTER_BENCH
    • SPEED_BENCH

      public static final ItemTypes SPEED_BENCH
  • Method Details

    • values

      public static ItemTypes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ItemTypes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getString

      public String getString()
      Returns the string representation of this item type.
      Returns:
      the string value associated with this ItemTypes constant