/* * playerInterface.h * * Created on: 17 juin 2018 * Author: isen */ #ifndef PLAYERINTERFACE_H_ #define PLAYERINTERFACE_H_ /** Structure d'un joueur (IA ou utilisateur) * * */ typedef struct Player { int Id; char Name[35]; char Race[20]; int HealthPoints; int AttacksPoints; int DefensePoints; int PositionX; int PositionY; //char Weapons[Max_Weapons]; //int Coins; struct Player * suiv; }PLAYER; //Prototypes PLAYER* createPlayer(int Id); PLAYER* insertRightPlaceRecursive(PLAYER* Head, PLAYER* Element); void displayList(PLAYER * Head); PLAYER * freeElement(PLAYER *Head, int Id); PLAYER * freeList(PLAYER *Head); PLAYER * SearchPlayer(PLAYER *Head, int idPlayer); void AttackPlayer( PLAYER *player1, PLAYER *player2); void ActionPlayer(PLAYER * player, int action); int NumberPlayerAlive(PLAYER *Head); int getEvent(void); #endif /* PLAYERINTERFACE_H_ */