Package rea.events

Class GameChangedEvent

java.lang.Object
rea.events.GameChangedEvent
All Implemented Interfaces:
UpdateEvent

public class GameChangedEvent extends Object implements UpdateEvent
Event that indicates that a game instance has changed. For instance, a new player joined the game, the game stared, or the game ended.
Author:
José Paulo Leal jpleal@fc.up.pt
  • Constructor Details

    • GameChangedEvent

      public GameChangedEvent(GameInstance gameInstance)
      Create a game changed event.
      Parameters:
      gameInstance - the game instance that changed
  • Method Details

    • getGameInstance

      public GameInstance getGameInstance()
      Get the game instance that changed.
      Returns:
      the game instance that changed