Enum Class KaiserEngine.GameState
- All Implemented Interfaces:
Serializable, Comparable<KaiserEngine.GameState>, Constable
- Enclosing class:
KaiserEngine
Describes whether further annual updates and player actions are permitted.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player or console input ended the game before completion.The ten action years and the final year-start update have completed.More than 45 percent of the population starved in one year.The reign is in progress and the caller may advance the game. -
Method Summary
Modifier and TypeMethodDescriptionstatic KaiserEngine.GameStateReturns the enum constant of this class with the specified name.static KaiserEngine.GameState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The reign is in progress and the caller may advance the game. -
COMPLETED
The ten action years and the final year-start update have completed. -
DISMISSED
More than 45 percent of the population starved in one year. -
ABORTED
The player or console input ended the game before completion.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-