20 lines
313 B
C
20 lines
313 B
C
#ifndef GUARD_PLAYER_H
|
|
#define GUARD_PLAYER_H
|
|
|
|
struct Player{
|
|
unsigned lives;
|
|
unsigned x;
|
|
unsigned id;
|
|
unsigned score=0;
|
|
|
|
unsigned deathAnimCounter=0;
|
|
unsigned fireCooldown=0;
|
|
|
|
// TODO remove ?
|
|
bool hasDeathAnimation() const;
|
|
bool isEliminated() const;
|
|
bool isPlaying() const;
|
|
void damage();
|
|
};
|
|
|
|
#endif |