public interface IClientToServerConnectionCallable
Modifier and Type | Method and Description |
---|---|
void |
connectionResetCallback()
Will be called by the ClientToServerConnection when the connection was reset.
|
void |
finishNotificationCallback()
Will be called by the ClientToServerConnection when a FinishNotification
is received.
|
void |
gameContinueNotificationCallback()
Will be called by the ClientToServerConnection when a GameContinueNotification
is received.
|
void |
gameListResponseCallback(List<Game> gameList)
Will be called by the ClientToServerConnection when a GameListResponse
is received.
|
void |
gamePauseNotificationCallback()
Will be called by the ClientToServerConnection when a GamePauseNotification
is received.
|
void |
gameStartNotificationCallback()
Will be called by the ClientToServerConnection when a GameStartNotification is
received.
|
void |
kickNotificationCallback(List<Player> kickedPlayers)
Will be called by the ClientToServerConnection when a KickNotification
is received.
|
void |
processingRequestReplyCallback(JoinResponse response,
int clientId)
Will be called by the ClientToServerConnection when a ProcessingRequestReply is
received.
|
void |
startGame(GameModel gameModel)
Will be called by the ClientToServerConnection when the first GameStateNotification
is received.
|
void |
turnNotificationCallback(boolean placeToken)
Will be called by the ClientToServerConnection when a TurnNotification
is received.
|
void gameListResponseCallback(List<Game> gameList)
gameList
- the list of Game objects belonging to the games offered by the hostvoid processingRequestReplyCallback(JoinResponse response, int clientId)
response
- the JoinResponse that was received along with the ProcessingRequestReplyclientId
- the id that was assigned to this clientvoid gameStartNotificationCallback()
void startGame(GameModel gameModel)
gameModel
- the new GameModel belonging to the GameSateNotification receivedvoid turnNotificationCallback(boolean placeToken)
placeToken
- true, if the client whose turn it is has to reply with a
SetTokenCmd or false for a SetTileCmd.void kickNotificationCallback(List<Player> kickedPlayers)
kickedPlayers
- the Players who were kickedvoid finishNotificationCallback()
void gamePauseNotificationCallback()
void gameContinueNotificationCallback()
void connectionResetCallback()
Copyright © 2017 smarTen. All rights reserved.