Zappy - Year end project 2
This is a project that Epitech asked us to create in order to allow us to reveiw the notions of the current year.
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2024
3** my_zappy
4** File description:
5** constants
6*/
7
8#ifndef SERVER_CONSTANTS_H
9 #define SERVER_CONSTANTS_H
10
12
13 #define ERROR 84
14 #define MAX_BUFFER_SIZE 1024
15 #define MAX_CLIENT 1024
16 #define UNKNOWN -1
17
19
20 #define NB_PARAM 6
21 #define CLIENTS_NB_PARAM "number of authorized clients per team"
22 #define FREQUENCE_PARAM "reciprocal of time unit for execution of actions"
23 #define MINIMUM_MAP_SIZE 20
24
26
27 #define DEFAULT_FREQUENCE 100
28
29 // Ressources density
30
31 #define FOOD_DENSITY 0.5
32 #define LINEMATE_DENSITY 0.3
33 #define DERAUMERE_DENSITY 0.15
34 #define SIBUR_DENSITY 0.1
35 #define MENDIANE_DENSITY 0.1
36 #define PHIRAS_DENSITY 0.08
37 #define THYSTAME_DENSITY 0.05
38
39 // Time
40
41 #define SPAWNS_TIME 20
42 #define PLAYER_TIME 1260
43 #define ADD_FOOD 126
44 #define BASIC_TIME 7
45 #define INVENTORY_TIME 1
46 #define FORK_TIME 42
47 #define INCANTATION_TIME 300
48
49 // !! COMMAND_CONSTANT !!
50
51 #define COMMAND_DELIMITER ' '
52 #define COMMAND_SEPARATOR '\n'
53
54 #define CLIENT_COMMAND_NB 13
55 #define GUI_COMMAND_NB 9
56 #define BROADCAST_COMMAND 5
57
58 #define GUI_TEAM_NAME "GRAPHIC"
59
61
62 #define CONNEXION_FAILED "Failed to get connexion with the client.\n"
63
64#endif