Enum Class GameStatus

java.lang.Object
java.lang.Enum<GameStatus>
com.bdtripp.hauntedhouse.model.GameStatus
All Implemented Interfaces:
Serializable, Comparable<GameStatus>, Constable

public enum GameStatus extends Enum<GameStatus>
Represents the status of the game. Enumerates the possible lifecycle states the game may be in.
Author:
Brian Tripp
  • Enum Constant Details

    • RUNNING

      public static final GameStatus RUNNING
      Indicates that the game is currently running.
    • STOPPED

      public static final GameStatus STOPPED
      Indicates that the game has been stopped.
  • Method Details

    • values

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