Enum Class MinimapRoomState

java.lang.Object
java.lang.Enum<MinimapRoomState>
com.mg105.interface_adapters.map.MinimapRoomState
All Implemented Interfaces:
Serializable, Comparable<MinimapRoomState>, Constable

public enum MinimapRoomState extends Enum<MinimapRoomState>
Possible knowledge states of a room.

Note that we treat 'null' as a room state being unknown.

  • Enum Constant Details

    • UNEXPLORED

      public static final MinimapRoomState UNEXPLORED
      The room is implied to exist but is unexplored.
    • EXPLORED

      public static final MinimapRoomState EXPLORED
      The room has been visited at least once
  • Method Details

    • values

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