/* * playerInterface.h * * Created on: 17 juin 2018 * Author: isen */ #include "arenaEngine.h" #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 Race; 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); void ActionPlayer(ARENA_H_TILE* arena,PLAYER * player, int action); int NumberPlayerAlive(PLAYER *Head); int getEvent(void); #define ARENAMAX 20 #endif /* PLAYERINTERFACE_H_ */