Base interface for all ECS components.
Component identifying an entity as a player with game statistics.
ComponentType getType() const override
Get the component type ID.
int getLives() const
Get remaining lives.
void setLives(int lives)
Set remaining lives.
int _score
Player's current score.
int _lives
Remaining lives.
void setScore(int score)
Set player's score.
void setPlayerId(int playerId)
Set player ID.
int getScore() const
Get player's score.
int _playerId
Unique player identifier.
Player(int score, int lives, uint32_t playerId)
Constructor with all player data.
~Player() override=default
int getPlayerId() const
Get player ID.
Maximum number of distinct component types supported by the Registry.
std::size_t ComponentType
Type alias for component identification.