LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::Entity Class Referenceabstract

Abstract class to be inherited by users of the library which acts as a container of one or more Fields.

#include <nrg_entity.h>

Inheritance diagram for nrg::Entity:
nrg::FieldContainer nrg::EntityHelper< T, type >

Public Member Functions

 Entity ()
 Default Constructor.
 
virtual Entityclone ()=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)
 Copy Constructor.
 
FieldContaineroperator= (const FieldContainer &copy)
 Assignment Operator.
 
FieldBasegetFirstField () 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.
 

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