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
Data Fields
cli_s Struct Reference

A structure to store every client/player data. More...

#include <server_handler.h>

Collaboration diagram for cli_s:
Collaboration graph

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
 

Detailed Description

A structure to store every client/player data.

Parameters
fdThe file descriptor of the client
is_connectedIs he connected to the server
team_nameThe team where he is
client_numHis numero in the team
levelHis level in the game
posHis position in the map (0 = x, 1 = y)
ressourcesHis inventory
time_lifeHis time life
directionHis direction (LEFT, RIGHT, UP, DOWN)

Definition at line 74 of file server_handler.h.

Field Documentation

◆ client_num

int cli_s::client_num

Definition at line 78 of file server_handler.h.

◆ direction

direction_t cli_s::direction

Definition at line 83 of file server_handler.h.

◆ fd

int cli_s::fd

Definition at line 75 of file server_handler.h.

◆ is_connected

bool cli_s::is_connected

Definition at line 76 of file server_handler.h.

◆ level

int cli_s::level

Definition at line 79 of file server_handler.h.

◆ pos

int cli_s::pos[2]

Definition at line 80 of file server_handler.h.

◆ ressources

ressources_t cli_s::ressources

Definition at line 81 of file server_handler.h.

◆ team_name

char* cli_s::team_name

Definition at line 77 of file server_handler.h.

◆ time_life

int cli_s::time_life

Definition at line 82 of file server_handler.h.


The documentation for this struct was generated from the following file: