Enum Class CellType

All Implemented Interfaces:
Serializable, Comparable<CellType>, Constable

public enum CellType extends Enum<CellType>
Types of cells on the 11x11 map.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Contains a Goblin; entering starts a battle.
    Contains an item; walkable and automatically picked up on entry.
    Lava from the shrinking zone; entering deals 10 HP damage per round.
    Normal cell; walkable.
    River; not walkable (Reborn can cross).
    Rock; not walkable by any character.
    Tree; not walkable (Archer can cross).
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static CellType
    Returns the enum constant of this class with the specified name.
    static CellType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NORMAL

      public static final CellType NORMAL
      Normal cell; walkable.
    • RIVER

      public static final CellType RIVER
      River; not walkable (Reborn can cross).
    • TREE

      public static final CellType TREE
      Tree; not walkable (Archer can cross).
    • ROCK

      public static final CellType ROCK
      Rock; not walkable by any character.
    • ITEM

      public static final CellType ITEM
      Contains an item; walkable and automatically picked up on entry.
    • GOBLIN

      public static final CellType GOBLIN
      Contains a Goblin; entering starts a battle.
    • LAVA

      public static final CellType LAVA
      Lava from the shrinking zone; entering deals 10 HP damage per round.
  • Constructor Details

    • CellType

      private CellType()
  • Method Details

    • values

      public static CellType[] 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 CellType 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