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

Abstract base class that Field inherits from.

#include <nrg_field.h>

Inheritance diagram for nrg::FieldBase:
nrg::Field< T, Cdc > nrg::Field< T[N]>

Public Member Functions

 FieldBase (FieldContainer *container)
 Standard Constructor.
 
 FieldBase (const FieldBase &copy)
 Copy Constructor.
 
FieldBaseoperator= (const FieldBase &copy)
 Assignment operator.
 
virtual size_t readFromPacket (Packet &p)=0
 Reads data from Packet p into this Field.
 
virtual size_t writeToPacket (Packet &p) const =0
 Writes this Field into the Packet p.
 
virtual void shiftData ()=0
 Indicates a new Snapshot has begun and the Field should move data_next to data.
 
virtual ~FieldBase ()
 Standard Destructor.
 
virtual bool wasUpdated () const
 Returns true if the Field was updated since the last update.
 
virtual void setUpdated (bool updated)
 Force this Field's updated flag to be true or false.
 
FieldBasegetNextField () const
 Returns the next Field in the FielcContainer's linked list, or nullptr at the end of the list.
 

Protected Attributes

FieldContainercontainer
 
FieldBasenext
 
bool updated
 

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