public interface IPlayerClientToServerConnection extends IObserverClientToServerConnection
IPlayerClientToServerConnection
defines methods for
sending outgoing commands needed for a player client to communicate
with the server. It extends the IObserverClientToServerConnection
interface.Modifier and Type | Method and Description |
---|---|
void |
sendGameJoinRequest(int gameId,
String clientName,
Role role)
Sends a GameJoinRequest to the server.
|
void |
sendSetTileCmd(Tile tile)
Sends a SetTileCmd to the server.
|
void |
sendSetTileCmd(Tile tile,
Position position)
Sends a SetTileCmd to the server.
|
void |
sendSetTokenCmd(Gate gate)
Sends a SetTokenCmd to the server.
|
getNetworkAddress, sendGameJoinRequest, sendGameListRequest
void sendSetTileCmd(Tile tile, Position position)
tile
- the tile to be placedposition
- the position to place the tile atvoid sendSetTileCmd(Tile tile)
tile
- the tile to be placedvoid sendSetTokenCmd(Gate gate)
gate
- the gate to place the token atvoid sendGameJoinRequest(int gameId, String clientName, Role role)
gameId
- the Id of the game the client would like to join (-1 if client wants to join the general game pool)clientName
- the name the user wants to takerole
- the Role the client would like to takeCopyright © 2017 smarTen. All rights reserved.