- Lobby Management
- Create Lobby
- Create Lobby Request
TODO SERVER
TODO CLIENT
- Create Lobby Response
TODO SERVER
TODO CLIENT
- Create Lobby Request
- Join Lobby
- Join Lobby Request
TODO SERVER
TODO CLIENT
- Join Lobby Response
TODO SERVER
TODO CLIENT
- Join Lobby Request
- Info Lobby
- Info Lobby Request
TODO SERVER
TODO CLIENT
- Info Lobby Response
TODO SERVER
TODO CLIENT
- Info Lobby Request
- Set the player ready
TODO SERVER
TODO CLIENT
- Start the game
- Start the game Request
TODO SERVER
TODO CLIENT
- Start the game Response
TODO SERVER
TODO CLIENT
- Start the game Request
- Create Lobby
- Level Infos Management
- Map Shape update
TODO SERVER
TODO CLIENT
- Map Position update
TODO SERVER
TODO CLIENT
- Map Shape update
Ask to server to create a new Lobby instance. If it succeed, server return the Lobby code.
LOBBY CREATE;
€
Tell to the client action succeed or not with additional infos.
Succeed:
LOBBY CREATE SUCCEED [CODE];
€
Where [CODE] is replaced with the unique code of the Lobby
Failed:
LOBBY CREATE FAILED;
€
Ask server to join Lobby with code.
LOBBY JOIN [CODE] [PLAYER_NAME];
€
Where [CODE] is replaced with the unique code of the Lobby,
[PLAYER_COUNT] is replaced by the number of player in the Lobby
Tell to the client action succeed or not.
Succeed:
LOBBY JOIN SUCCEED;
€
Failed:
LOBBY JOIN FAILED;
€
Ask for server to send updated Lobby infos.
LOBBY INFO [CODE];
€
Where [CODE] is replaced with the unique code of the Lobby.
Tell to client the updated Lobby infos.
LOBBY INFO [CODE] [PLAYER_COUNT];
LOBBY PLAYERS;
[PLAYER_NAME] [PLAYER_READY_STATUS];
€
Where [CODE] is replaced with the unique code of the Lobby,
[PLAYER_COUNT] is replaced by the number of player in the Lobby, and
[PLAYER_NAME] is replaced by the name of the player in the Lobby and [PLAYER_READY_STATUS] is replaced by TRUE
or FALSE
Ask for server to set player ready in the Lobby.
LOBBY READY [CODE] [PLAYER_NAME];
€
Where [CODE] is replaced with the unique code of the Lobby, and
[PLAYER_NAME] is replaced by the name of the current player.
Server will send to each client an Info Response.
Ask for server to start the game of the Lobby. It it succeed, server gonna send a Start Response to all client of the lobby, otherwise nothing append.
LOBBY START [CODE];
€
Tell to the client to switch to Game Mode. Server will send only one time a game this response.
LOBBY START [PORT];
€
Update Map Shape.
LEVEL MAP SHAPE [MAP_ID];
€
Update Map Position.
LEVEL MAP POSITION [POS_X];
€