Class GameEndEvent<P>

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

public class GameEndEvent<P> extends GameEvent
Event fired when a game ends.

This event is triggered when the game transitions to the ENDING phase. It provides access to the complete game result, including winner, podium, and all players. Game modules can listen to this event to perform cleanup or final statistics processing.

  • Constructor Details

    • GameEndEvent

      public GameEndEvent(int arenaId, String gameId, GameResult<P> result)
      Constructs a new GameEndEvent.
      Parameters:
      arenaId - the ID of the arena where the game ended
      gameId - the unique identifier of the game module
      result - the final result of the game
  • Method Details

    • getResult

      public GameResult<P> getResult()
      Gets the result of the ended game.
      Returns:
      the game result containing winner, podium, and all players