SuperSpaceInvaderTurboApoca.../headers/player.h
2022-01-09 00:35:09 +01:00

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