player data structure
More...
#include <player.h>
player data structure
Definition at line 19 of file player.h.
◆ damage()
◆ hasDeathAnimation()
bool Player::hasDeathAnimation |
( |
| ) |
const |
◆ isEliminated()
bool Player::isEliminated |
( |
| ) |
const |
◆ isPlaying()
bool Player::isPlaying |
( |
| ) |
const |
◆ deathAnimCounter
unsigned Player::deathAnimCounter =0 |
counter used for the death animation of players undefined once the player is eliminated
Definition at line 45 of file player.h.
◆ fireCooldown
unsigned Player::fireCooldown =0 |
player's shooting cooldown
Definition at line 50 of file player.h.
◆ id
player's unique identidier
Definition at line 34 of file player.h.
◆ lives
unsigned Player::lives = 3 |
player life points
Definition at line 24 of file player.h.
◆ score
unsigned Player::score =0 |
player's personal score
Definition at line 39 of file player.h.
x coordinate of the player
Definition at line 29 of file player.h.
The documentation for this struct was generated from the following files: