Enum Class GameState

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

public enum GameState extends Enum<GameState>
All possible states of the game. GameManager changes the state and notifies the UI through GameEventListener.
  • Enum Constant Details

    • CHARACTER_SELECT

      public static final GameState CHARACTER_SELECT
      Character selection screen.
    • MAP_PHASE

      public static final GameState MAP_PHASE
      Map phase where players take turns moving.
    • BATTLE_PHASE

      public static final GameState BATTLE_PHASE
      Turn-based battle phase.
    • GAME_OVER

      public static final GameState GAME_OVER
      Game over; a winner has been determined.
  • Constructor Details

    • GameState

      private GameState()
  • Method Details

    • values

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