|
GlPortal Class Reference
0.1.1
Source code documentation of the free and open 3D action puzzle game.
|
#include <external/RadixEngine/include/radix/component/Health.hpp>
Inherits radix::Component.
Public Member Functions | |
| Health (Entity &ent) | |
| const char * | getName () const |
| TypeId | getTypeId () const |
| void | serialize (serine::Archiver &) |
| bool | isAlive () |
| void | heal (float amount) |
| void | harm (float amount) |
| void | kill () |
| void | revive () |
Public Member Functions inherited from radix::Component | |
| Component (Entity &ent) noexcept | |
| virtual | ~Component () |
Data Fields | |
| float | maxHealth |
| float | health |
Additional Inherited Members | |
Public Types inherited from radix::Component | |
| using | TypeId = ComponentTypeId |
Static Public Member Functions inherited from radix::Component | |
| template<typename T > | |
| static TypeId | getTypeId () |
| Gets a component's type ID. More... | |
Static Public Attributes inherited from radix::Component | |
| static constexpr TypeId | MaxId = 32 |
Protected Attributes inherited from radix::Component | |
| Entity & | entity |
| radix::Health::Health | ( | Entity & | ent | ) |
|
inlinevirtual |
Implements radix::Component.
|
inlinevirtual |
Implements radix::Component.
| void radix::Health::harm | ( | float | amount | ) |
| void radix::Health::heal | ( | float | amount | ) |
| bool radix::Health::isAlive | ( | ) |
| void radix::Health::kill | ( | ) |
| void radix::Health::revive | ( | ) |
| void radix::Health::serialize | ( | serine::Archiver & | ar | ) |
| float radix::Health::health |
| float radix::Health::maxHealth |
1.8.8