Package net.blueva.arcade.api.game
Enum GamePhase
- All Implemented Interfaces:
Serializable,Comparable<GamePhase>
Represents the different phases of a game lifecycle.
A game typically progresses through these phases in order: WAITING → COUNTDOWN → PLAYING → ENDING → FINISHED
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe game has enough players and is counting down before starting.The game is ending and showing results.The game has completely finished and the arena is ready to be cleaned up.The game is actively being played.The game is waiting for players to join before it can start. -
Method Summary
-
Enum Constant Details
-
WAITING
The game is waiting for players to join before it can start. This is the initial phase when a game arena is created. -
COUNTDOWN
The game has enough players and is counting down before starting. Players can no longer join during this phase in most game modes. -
PLAYING
The game is actively being played. This is the main gameplay phase where players compete. -
ENDING
The game is ending and showing results. This phase typically includes the podium display and statistics summary. -
FINISHED
The game has completely finished and the arena is ready to be cleaned up. No more game logic will be executed after this phase.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-