This interface was deprecated.
The Game Manager APIs are no longer supported and will be removed in a future release.
A listener that can be set in
to be notified when game manager state is updated or when game messages are received for
players controlled by this sender.
Public Method Summary
public abstract void onGameMessageReceived (String playerId, JSONObject gameMessage)
Called when a game message for a player controlled by this sender is received.
|playerId||The player ID of the recipient of the message.|
|gameMessage||The game message.|
public abstract void onStateChanged (GameManagerState newState, GameManagerState oldState)
Called when the game manager state has changed.
This includes lobby, gameplay, player connect/disconnect, game data, and player data changes.
Use utility functions in
to find out what changed since the previous snapshot.
|newState||The new game manager state.|
|oldState||The old game manager state.|