Class GameStartEvent<P>

java.lang.Object
net.blueva.arcade.api.events.GameEvent
net.blueva.arcade.api.events.GameStartEvent<P>
Type Parameters:
P - the player type (platform-specific)

public class GameStartEvent<P> extends GameEvent
Event fired when a game starts.

This event is triggered when the game transitions from the COUNTDOWN phase to the PLAYING phase. It provides access to all players who are participating in the game at the start.

  • Constructor Details

    • GameStartEvent

      public GameStartEvent(int arenaId, String gameId, List<P> players)
      Constructs a new GameStartEvent.
      Parameters:
      arenaId - the ID of the arena where the game is starting
      gameId - the unique identifier of the game module
      players - the list of all players participating in the game
  • Method Details

    • getPlayers

      public List<P> getPlayers()
      Gets the list of all players who are participating in the game.
      Returns:
      an immutable list of all players at game start