Helper template class that automatically implements the Entity::clone and Entity::getType methods.
#include <nrg_entity.h>
Public Member Functions | |
virtual nrg::Entity * | clone () |
Returns an identical copy of the derived class of this Entity. | |
virtual uint16_t | getType () const |
Returns this entity's user-defined type identifier. | |
Public Member Functions inherited from nrg::Entity | |
Entity () | |
Default Constructor. | |
uint16_t | getID () const |
Returns this Entity's ID assigned by the library. | |
virtual | ~Entity () |
Standard Destructor. | |
virtual void | onCreate (Client &c) |
Virtual function called on the client-side when the Entity is created. | |
virtual void | onDestroy (Client &c) |
Virtual function called on the client-side just before the Entity is destroyed. | |
virtual void | onUpdate (Client &c) |
Virtual function called on the client-side when the Entity is updated. | |
Public Member Functions inherited from nrg::FieldContainer | |
FieldContainer () | |
Standard Constructor. | |
FieldContainer (const FieldContainer ©) | |
Copy Constructor. | |
FieldContainer & | operator= (const FieldContainer ©) |
Assignment Operator. | |
FieldBase * | getFirstField () const |
Return the first field in this FieldContainer's internal linked-list. | |
size_t | getNumFields () const |
Returns the number of fields in this FieldContainer's linked-list. | |