void setName(std::string name)
Sets the name of the component.
~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 Health class, a component for managing the health of game objects.