14 #ifndef GK_HEALTHCOMPONENT_HPP_ 15 #define GK_HEALTHCOMPONENT_HPP_ 55 #endif // GK_HEALTHCOMPONENT_HPP_
void start()
Start the timer.
void addLife(const u16 lifeAdded)
void reset()
Reset the timer.
void removeLife(const u16 lifeRemoved)
u32 time() const
Get time.
HealthComponent(const u16 maxLife, const u16 life=0, const u16 hurtTime=0)
bool isStarted() const
Check if the timer is started.
void setLife(const u16 newLife)