Abstract class to be inherited by users of the library which acts as a container of one or more Fields.
#include <nrg_entity.h>
Public Member Functions | |
Entity () | |
Default Constructor. | |
virtual Entity * | clone ()=0 |
Returns an identical copy of the derived class of this Entity. | |
virtual uint16_t | getType () const =0 |
Returns this entity's user-defined type identifier. | |
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. | |