16 printf(
"\tx = %d, y = %d: ", x, y);
17 printf(
"\t[player_nb: %d, "
37 printf(
"Map content:\n");
41 show_tile_content(server, y, x);
50 printf(
"\t\t- Fd: %d\n"
51 "\t\t- Is_connected: %d\n"
52 "\t\t- Team name: %s\n"
54 "\t\t- x: %d, y: %d\n"
55 "\t\t- Time life: %d\n"
56 "\t\t- Direction: %d\n",
69 printf(
"Clients data:\n");
76 show_single_client_data(server, i);
83 printf(
"Teams data:\n");
85 printf(
"\t- Team %d:\n", (i + 1));
87 printf(
"\t\tNumber of clients: %d\n",
89 printf(
"\t\tNumber of each client:\n");
92 printf(
"\t\t\t- %d\n",
101 printf(
"Ressources in the map:\n"
104 "\t- Deraumere: %d\n"
108 "\t- Thystame: %d\n\n",
120 printf(
"Ressources quantity:\n"
123 "\t- Deraumere: %d\n"
127 "\t- Thystame: %d\n\n",
139 if (need_to_show ==
false) {
145 show_ressources_quantity(server);
146 show_ressources_in_map(server);
147 show_teams_data(server);
148 show_clients_data(server);
149 show_map_content(server);
int show_game_data(server_handler_t *server, bool need_to_show)
A function to display every data of the game.
ressources_t total_ressources
cli_t clients[MAX_CLIENT]
ressources_t ressources_quantity
A structure to store server general data.
int client_num_list[MAX_CLIENT]