Base class for all game components, providing basic component functionalities.
A component for managing health of game objects.
~Health()
Destructor for the health component.
int m_currentHealth
Current health of the game object.
Health()
Constructor that initializes the health component.
int getHealth()
Retrieves the current health of the game object.
void updateHealth(int amount)
Updates the health by a specified amount.
Defines the Component base class for all components in the game engine.