Enum Class GameStages
- All Implemented Interfaces:
Serializable, Comparable<GameStages>, Constable
Represents the possible stages of a game.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStage indicating that the game has ended.Stage in which end-of-game scoring and ranking are computed.Stage in which an optional card effect can be resolved.Stage in which the mandatory actions associated with the chosen slots are resolved.Stage in which an event card is being resolved.Stage in which players select their action slots.Stage in which players choose their totems.Stage in which the game is waiting for players to join. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe human-readable name of this stage, used intoString(). -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGameStages(String displayName) Constructs aGameStagesvalue with the given display name. -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the human-readable name of this stage.static GameStagesReturns the enum constant of this class with the specified name.static GameStages[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WAITING
Stage in which the game is waiting for players to join. -
TOTEM_CHOICE
Stage in which players choose their totems. -
SLOT_CHOICE
Stage in which players select their action slots. -
RES_ACTIONS
Stage in which the mandatory actions associated with the chosen slots are resolved. -
OPT_CARD_E
Stage in which an optional card effect can be resolved. -
RES_EVENT
Stage in which an event card is being resolved. -
ENDING
Stage in which end-of-game scoring and ranking are computed. -
ENDED
Stage indicating that the game has ended.
-
-
Field Details
-
displayName
The human-readable name of this stage, used intoString().
-
-
Constructor Details
-
GameStages
Constructs aGameStagesvalue with the given display name.- Parameters:
displayName- the human-readable label for this stage
-
-
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
-
toString
Returns the human-readable name of this stage.- Overrides:
toStringin classEnum<GameStages>- Returns:
- the display name (e.g.
"Slot"forSLOT_CHOICE)
-