Enum Class RoomTileType

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

public enum RoomTileType extends Enum<RoomTileType>
Types of tiles that can appear within a room.
  • Enum Constant Details

    • FLOOR

      public static final RoomTileType FLOOR
      Empty floor that can be walked on
    • WALL

      public static final RoomTileType WALL
      Wall that cannot be walked on. Mainly used for the border

      public static final RoomTileType WALL_WITH_FACE
      A wall where you can see the side
    • EXIT

      public static final RoomTileType EXIT
      A doorway
    • CHEST

      public static final RoomTileType CHEST
      A treasure chest

      public static final RoomTileType CHEST_OPEN
      A treasure chest that has been opened

      public static final RoomTileType OPPONENT_SET
      A potential battle
  • Method Details

    • values

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

      public static RoomTileType 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null