|
@@ -81,9 +81,9 @@ int search_game(char* name) {
|
|
|
/* --- Fonctions publiques --- */
|
|
|
void ini_handler() {
|
|
|
//Get
|
|
|
- add_handler("GET", "client/end", handler_client_end);
|
|
|
add_handler("GET", "game/list", handler_game_list);
|
|
|
//Post
|
|
|
+ add_handler("POST", "client/end", handler_client_end);
|
|
|
add_handler("POST", "game/create", handler_game_create);
|
|
|
add_handler("POST", "game/join", handler_game_join);
|
|
|
add_handler("POST", "game/quit", handler_game_quit);
|
|
@@ -271,7 +271,6 @@ int handler_game_join(int cliId, JsonParser* json) {
|
|
|
}
|
|
|
|
|
|
int handler_game_quit(int cliId, JsonParser* json) {
|
|
|
- printf("Quit\n");
|
|
|
boolean find = false;
|
|
|
JsonEncoder notif;
|
|
|
//Cherche le client dans les parties
|
|
@@ -304,7 +303,6 @@ int handler_game_quit(int cliId, JsonParser* json) {
|
|
|
}
|
|
|
|
|
|
int handler_player_move(int cliId, JsonParser* json) {
|
|
|
- printf("Player Move\n");
|
|
|
char* move;
|
|
|
int index, x = 0, y = 0;
|
|
|
Player* p = NULL;
|