LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::EntityHelper< T, type > Struct Template Reference

Helper template class that automatically implements the Entity::clone and Entity::getType methods.

#include <nrg_entity.h>

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

Public Member Functions

virtual nrg::Entityclone ()
 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)
 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 struct was generated from the following file: