Drag[en]gine Game Engine  1.21
deNetworkValue Class Reference

Network Value Class. More...

#include <deNetworkValue.h>

Inheritance diagram for deNetworkValue:
deObject deNetworkValueData deNetworkValueFloat deNetworkValueInteger deNetworkValuePoint2 deNetworkValuePoint3 deNetworkValueQuaternion deNetworkValueString deNetworkValueVector2 deNetworkValueVector3

Public Types

enum  eValueFormats {
  evfSInt8 , evfUInt8 , evfSInt16 , evfUInt16 ,
  evfSInt32 , evfUInt32 , evfSInt64 , evfUInt64 ,
  evfFloat16 , evfFloat32 , evfFloat64
}
 Value formats. More...
 
typedef deTObjectReference< deNetworkValueRef
 Type holding strong reference. More...
 
- Public Types inherited from deObject
typedef deTObjectReference< deObjectRef
 Type holding strong reference. More...
 

Public Member Functions

Visiting
virtual void Visit (deNetworkValueVisitor &visitor)
 Visit network value. More...
 
- Public Member Functions inherited from deObject
int GetRefCount () const
 Reference count. More...
 
void AddReference ()
 Add reference increasing reference count by 1. More...
 
void FreeReference ()
 Decrease reference count by one and delete object if count reaches 0. More...
 
 deObject ()
 Create object with reference count of 1. More...
 

Constructors and Destructors

 deNetworkValue ()
 Create network value object. More...
 
virtual ~deNetworkValue ()
 Clean up network value object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from deObject
virtual ~deObject ()
 Clean up object. More...
 

Detailed Description

Network Value Class.

Defines a value in a network state. Network state properties are defined by a name that is unique inside the parent network state. The type indicates what kind of value is stored in the value. A set of typical types is provided which should be enough to represent states across the network. In addtion each network state value has also a predictor assigned. Predictors are used to cut down on the number of packets send over the network by predicting the upcoming value of a value according to rules.

Member Typedef Documentation

◆ Ref

Type holding strong reference.

Member Enumeration Documentation

◆ eValueFormats

Value formats.

Enumerator
evfSInt8 

8-Bit signed integer.

evfUInt8 

8-Bit unsigned integer.

evfSInt16 

16-Bit signed integer.

evfUInt16 

16-Bit unsigned integer.

evfSInt32 

32-Bit signed integer.

evfUInt32 

32-Bit unsigned integer.

evfSInt64 

64-Bit signed integer.

evfUInt64 

64-Bit unsigned integer.

evfFloat16 

16-Bit float.

evfFloat32 

32-Bit float.

evfFloat64 

64-Bit float.

Constructor & Destructor Documentation

◆ deNetworkValue()

deNetworkValue::deNetworkValue ( )

Create network value object.

◆ ~deNetworkValue()

virtual deNetworkValue::~deNetworkValue ( )
protectedvirtual

Clean up network value object.

Note
Subclasses should set their destructor protected too to avoid users accidently deleting a reference counted object through the object pointer. Only FreeReference() is allowed to delete the object.

Member Function Documentation

◆ Visit()


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