11 const int x,
const int y)
29static void randomize_map_content(
game_data_t *game_data,
int *value,
37 while (*value < total) {
38 ressource_x = rand() % x;
39 ressource_y = rand() % y;
40 check_which_type(game_data, type, ressource_x, ressource_y);
65 call_randomizer(game_data);
void refill_map(game_data_t *game_data)
Refill the map with ressources (use in runtime)
void fill_map(server_handler_t *server)
Fill the map with ressources (use in initialization)
enum ressources_type_s ressources_type_t
A structure to store the game data.
ressources_t total_ressources
cli_t clients[MAX_CLIENT]
ressources_t ressources_quantity
A structure to store server general data.