GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields
radix::Health Class Reference

#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
Entityentity
 

Constructor & Destructor Documentation

radix::Health::Health ( Entity ent)

Member Function Documentation

const char* radix::Health::getName ( ) const
inlinevirtual

Implements radix::Component.

TypeId radix::Health::getTypeId ( ) const
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)

Field Documentation

float radix::Health::health
float radix::Health::maxHealth

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