Enum Class RoomTileType

java.lang.Object
java.lang.Enum<RoomTileType>
com.mg105.interface_adapters.map.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
    • WALL_WITH_FACE

      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
    • CHEST_OPEN

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

      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.
      Returns:
      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.)
      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