Package rea.gaming

Enum Class GameStage

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

public enum GameStage extends Enum<GameStage>
The game stage. This enumeration is used by GameInstance.
Author:
José Paulo Leal jpleal@fc.up.pt
  • Enum Constant Details

    • CREATED

      public static final GameStage CREATED
      The game has been created and waits to start.
    • PLAYING

      public static final GameStage PLAYING
      The game is being played.
    • ENDED

      public static final GameStage ENDED
      The game has ended.
  • Method Details

    • values

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