|
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.
|
A structure to store every client/player data. More...
#include <server_handler.h>

Data Fields | |
| int | fd |
| bool | is_connected |
| char * | team_name |
| int | client_num |
| int | level |
| int | pos [2] |
| ressources_t | ressources |
| int | time_life |
| direction_t | direction |
A structure to store every client/player data.
| fd | The file descriptor of the client |
| is_connected | Is he connected to the server |
| team_name | The team where he is |
| client_num | His numero in the team |
| level | His level in the game |
| pos | His position in the map (0 = x, 1 = y) |
| ressources | His inventory |
| time_life | His time life |
| direction | His direction (LEFT, RIGHT, UP, DOWN) |
Definition at line 74 of file server_handler.h.
| int cli_s::client_num |
Definition at line 78 of file server_handler.h.
| direction_t cli_s::direction |
Definition at line 83 of file server_handler.h.
| int cli_s::fd |
Definition at line 75 of file server_handler.h.
| bool cli_s::is_connected |
Definition at line 76 of file server_handler.h.
| int cli_s::level |
Definition at line 79 of file server_handler.h.
| int cli_s::pos[2] |
Definition at line 80 of file server_handler.h.
| ressources_t cli_s::ressources |
Definition at line 81 of file server_handler.h.
| char* cli_s::team_name |
Definition at line 77 of file server_handler.h.
| int cli_s::time_life |
Definition at line 82 of file server_handler.h.