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

Abstract base class for Input.

#include <nrg_input.h>

Inheritance diagram for nrg::InputBase:
nrg::FieldContainer nrg::Input< CRTP >

Public Member Functions

void markUpdated (bool b)
 
bool readFromPacket (Packet &p)
 
void writeToPacket (Packet &p) const
 
virtual void onUpdate (Player &player)=0
 Virtual function called Server-side when the Player player has sent some new input.
 
virtual void doPrediction ()=0
 NYI: Do prediction of inputs client-side.
 

Additional Inherited Members

- Protected 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: