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
Macros
constants.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ERROR   84
 ! GLOBAL CONSTANTS !!
 
#define MAX_BUFFER_SIZE   1024
 
#define MAX_CLIENT   1024
 
#define UNKNOWN   -1
 
#define NB_PARAM   6
 ! PARSING CONSTANTS !!
 
#define CLIENTS_NB_PARAM   "number of authorized clients per team"
 
#define FREQUENCE_PARAM   "reciprocal of time unit for execution of actions"
 
#define MINIMUM_MAP_SIZE   20
 
#define DEFAULT_FREQUENCE   100
 ! INITIALIZATION VALUE CONSTANTS !!
 
#define FOOD_DENSITY   0.5
 
#define LINEMATE_DENSITY   0.3
 
#define DERAUMERE_DENSITY   0.15
 
#define SIBUR_DENSITY   0.1
 
#define MENDIANE_DENSITY   0.1
 
#define PHIRAS_DENSITY   0.08
 
#define THYSTAME_DENSITY   0.05
 
#define SPAWNS_TIME   20
 
#define PLAYER_TIME   1260
 
#define ADD_FOOD   126
 
#define BASIC_TIME   7
 
#define INVENTORY_TIME   1
 
#define FORK_TIME   42
 
#define INCANTATION_TIME   300
 
#define COMMAND_DELIMITER   ' '
 
#define COMMAND_SEPARATOR   '\n'
 
#define CLIENT_COMMAND_NB   13
 
#define GUI_COMMAND_NB   9
 
#define BROADCAST_COMMAND   5
 
#define GUI_TEAM_NAME   "GRAPHIC"
 
#define CONNEXION_FAILED   "Failed to get connexion with the client.\n"
 ! MESSAGE !!
 

Macro Definition Documentation

◆ ADD_FOOD

#define ADD_FOOD   126

Definition at line 43 of file constants.h.

◆ BASIC_TIME

#define BASIC_TIME   7

Definition at line 44 of file constants.h.

◆ BROADCAST_COMMAND

#define BROADCAST_COMMAND   5

Definition at line 56 of file constants.h.

◆ CLIENT_COMMAND_NB

#define CLIENT_COMMAND_NB   13

Definition at line 54 of file constants.h.

◆ CLIENTS_NB_PARAM

#define CLIENTS_NB_PARAM   "number of authorized clients per team"

Definition at line 21 of file constants.h.

◆ COMMAND_DELIMITER

#define COMMAND_DELIMITER   ' '

Definition at line 51 of file constants.h.

◆ COMMAND_SEPARATOR

#define COMMAND_SEPARATOR   '\n'

Definition at line 52 of file constants.h.

◆ CONNEXION_FAILED

#define CONNEXION_FAILED   "Failed to get connexion with the client.\n"

! MESSAGE !!

Definition at line 62 of file constants.h.

◆ DEFAULT_FREQUENCE

#define DEFAULT_FREQUENCE   100

! INITIALIZATION VALUE CONSTANTS !!

Definition at line 27 of file constants.h.

◆ DERAUMERE_DENSITY

#define DERAUMERE_DENSITY   0.15

Definition at line 33 of file constants.h.

◆ ERROR

#define ERROR   84

! GLOBAL CONSTANTS !!

Definition at line 13 of file constants.h.

◆ FOOD_DENSITY

#define FOOD_DENSITY   0.5

Definition at line 31 of file constants.h.

◆ FORK_TIME

#define FORK_TIME   42

Definition at line 46 of file constants.h.

◆ FREQUENCE_PARAM

#define FREQUENCE_PARAM   "reciprocal of time unit for execution of actions"

Definition at line 22 of file constants.h.

◆ GUI_COMMAND_NB

#define GUI_COMMAND_NB   9

Definition at line 55 of file constants.h.

◆ GUI_TEAM_NAME

#define GUI_TEAM_NAME   "GRAPHIC"

Definition at line 58 of file constants.h.

◆ INCANTATION_TIME

#define INCANTATION_TIME   300

Definition at line 47 of file constants.h.

◆ INVENTORY_TIME

#define INVENTORY_TIME   1

Definition at line 45 of file constants.h.

◆ LINEMATE_DENSITY

#define LINEMATE_DENSITY   0.3

Definition at line 32 of file constants.h.

◆ MAX_BUFFER_SIZE

#define MAX_BUFFER_SIZE   1024

Definition at line 14 of file constants.h.

◆ MAX_CLIENT

#define MAX_CLIENT   1024

Definition at line 15 of file constants.h.

◆ MENDIANE_DENSITY

#define MENDIANE_DENSITY   0.1

Definition at line 35 of file constants.h.

◆ MINIMUM_MAP_SIZE

#define MINIMUM_MAP_SIZE   20

Definition at line 23 of file constants.h.

◆ NB_PARAM

#define NB_PARAM   6

! PARSING CONSTANTS !!

Definition at line 20 of file constants.h.

◆ PHIRAS_DENSITY

#define PHIRAS_DENSITY   0.08

Definition at line 36 of file constants.h.

◆ PLAYER_TIME

#define PLAYER_TIME   1260

Definition at line 42 of file constants.h.

◆ SIBUR_DENSITY

#define SIBUR_DENSITY   0.1

Definition at line 34 of file constants.h.

◆ SPAWNS_TIME

#define SPAWNS_TIME   20

Definition at line 41 of file constants.h.

◆ THYSTAME_DENSITY

#define THYSTAME_DENSITY   0.05

Definition at line 37 of file constants.h.

◆ UNKNOWN

#define UNKNOWN   -1

Definition at line 16 of file constants.h.