DamageableObject class
#include <DamageableObject.hpp>
Derived classes
Constructors, destructors, conversion operators
- DamageableObject(const int hp, const int invulnerab_time, const int dying_time)
Public functions
Protected functions
- void startInvulnerable() virtual
- void stopInvulnerable() virtual
Protected variables
- int hp_
- int max_hp_
- int dying_time_
- int invulnerable_time_
- Timer invulnerable_timer_
- Timer dying_timer_
- bool is_dead_
- bool is_dying_
- bool is_invulnerable_