Enum GamePhase

java.lang.Object
java.lang.Enum<GamePhase>
net.blueva.arcade.api.game.GamePhase
All Implemented Interfaces:
Serializable, Comparable<GamePhase>

public enum GamePhase extends Enum<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 Details

    • WAITING

      public static final GamePhase 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

      public static final GamePhase 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

      public static final GamePhase PLAYING
      The game is actively being played. This is the main gameplay phase where players compete.
    • ENDING

      public static final GamePhase ENDING
      The game is ending and showing results. This phase typically includes the podium display and statistics summary.
    • FINISHED

      public static final GamePhase 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

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

      public static GamePhase valueOf(String name)
      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 name
      NullPointerException - if the argument is null