#ifndef PLAYERS_H #define PLAYERS_H #include #include #include "constantes.h" #include "structures.h" struct chr_t { struct team_t *team; int idx; enum character_class_t class_; char *name; bool cpu; union { struct ally_t ally; struct enemy_t enemy; }; SDL_Surface *def_surf; SDL_Surface *red_surf; SDL_Surface *surf; SDL_Surface *curs; SDL_Rect pos; SDL_Rect pos_hp; SDL_Rect pos_mp; SDL_Rect pos_curs; bool alive; bool defensive; bool poisoned; int hp; int max_hp; int mp; int max_mp; int magic; int strength; int defense; int spirit; /* one for each element */ enum affinity_t affinities[ELEM_COUNT]; }; struct team_t { bool cpu; int chr_cnt; int chr_cur; char *name; struct chr_t *chrs; struct objects_t objects; }; struct stats_base_class_t { int hp; int mp; int magic; int strength; int defense; int spirit; }; extern struct stats_base_class_t base_stats_g[CLASS_CNT]; #endif /* PLAYERS_H */