Roguelike
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
game::component::Damageable Class Reference

#include <damageable.h>

Inheritance diagram for game::component::Damageable:
Inheritance graph
[legend]
Collaboration diagram for game::component::Damageable:
Collaboration graph
[legend]

Public Member Functions

 Damageable (game::base::GameObject *owner, double max_life)
 
 ~Damageable ()
 
void TakeDamage (double damage)
 
void StartToDie ()
 
double current_life () const
 
- Public Member Functions inherited from game::component::ComponentBase
 ComponentBase (game::base::GameObject *owner)
 
 ~ComponentBase ()
 

Additional Inherited Members

- Protected Attributes inherited from game::component::ComponentBase
game::base::GameObjectowner_
 

Constructor & Destructor Documentation

game::component::Damageable::Damageable ( game::base::GameObject owner,
double  max_life 
)
inline
game::component::Damageable::~Damageable ( )
inline

Member Function Documentation

double game::component::Damageable::current_life ( ) const
inline
void game::component::Damageable::StartToDie ( )
void game::component::Damageable::TakeDamage ( double  damage)

The documentation for this class was generated from the following files: