/* * File: player.c * Author: Arthur Brandao * * Created on 28 novembre 2018 */ #include #include #include "player.h" void create_player(Player* p, Client* c){ //Initialisation valeurs p->id = c->id; p->cli = c; p->x = 0; p->y = 0; p->life = 100; p->maxLife = 100; p->speed = 1; p->classicBomb = 1; p->mine = 0; p->remoteBomb = 0; p->maxBomb = 2; p->bombUp = 0; p->bombDown = 0; p->firePower = 0; p->scooter = 0; p->brokenLeg = 0; p->lifeMax = 0; p->lifeUp = 0; p->major = false; } void delete_player(Player* p){ //Rien a faire actuellement }