1 #ifndef RADIX_COMPONENT_HEALTH_HPP
2 #define RADIX_COMPONENT_HEALTH_HPP
20 return Component::getTypeId<std::remove_reference<decltype(*this)>::type>();
26 void heal(
float amount);
27 void harm(
float amount);
Definition: GameController.hpp:7
void kill()
Definition: Health.cpp:30
void revive()
Definition: Health.cpp:34
ECS entity, Component container It is created like this:
Definition: Entity.hpp:23
Base class to create entity components.
Definition: Component.hpp:25
float health
Definition: Health.hpp:11
void harm(float amount)
Definition: Health.cpp:26
ComponentTypeId TypeId
Definition: Component.hpp:35
float maxHealth
Definition: Health.hpp:10
bool isAlive()
Definition: Health.cpp:18
Health(Entity &ent)
Definition: Health.cpp:9
const char * getName() const
Definition: Health.hpp:15
void serialize(serine::Archiver &)
Definition: Health.cpp:13
TypeId getTypeId() const
Definition: Health.hpp:19
void heal(float amount)
Definition: Health.cpp:22