bool isPlaying() const
Tells if the player is playing, or has a death animation/is eliminated.
unsigned id
player's unique identidier
unsigned score
player's personal score
void damage()
Damage the player (no precondition on existing state)
unsigned deathAnimCounter
counter used for the death animation of players undefined once the player is eliminated
bool hasDeathAnimation() const
Tells if the player has a death animation ongoing.
unsigned fireCooldown
player's shooting cooldown
bool isEliminated() const
Tells if the player is eliminated (no more lives)
unsigned x
x coordinate of the player
unsigned lives
player life points