Drag[en]gine Script Module DragonScript Script API  1.0
NetworkState Class Reference

Network state. More...

Inheritance diagram for NetworkState:

Public Member Functions

Constructors
NetworkState new ()
 Create network state. More...
 
Management
int getValueCount ()
 Nnumber of values. More...
 
void addValue (int type, int format)
 Add value with type and format. More...
 
int getValueFormatAt (int index)
 format of value at index. More...
 
int getValueIntAt (int index)
 Value of integer value at index. More...
 
float getValueFloatAt (int index)
 Value of float value at index. More...
 
String getValueStringAt (int index)
 Value of string value at index. More...
 
Point getValuePoint2At (int index)
 Value of point-2 value at index. More...
 
Point3 getValuePoint3At (int index)
 Value of point-3 value at index. More...
 
Vector getValueVectorAt (int index)
 Value of vector-3 value at index. More...
 
Quaternion getValueQuaternionAt (int index)
 Value of quaternion value at index. More...
 
void setValueIntAt (int index, int value)
 Set value of integer value at index. More...
 
void setValueFloatAt (int index, float value)
 Set value of float value at index. More...
 
void setValueStringAt (int index, String value)
 Set value of string value at index. More...
 
void setValuePoint2At (int index, Point value)
 Set value of point-2 value at index. More...
 
void setValuePoint3At (int index, Point3 value)
 Set value of point-3 value at index. More...
 
void setValueVector3At (int index, Vector value)
 Set value of vector-3 value at index. More...
 
void setValueQuaternionAt (int index, Quaternion value)
 Set value of quaternion value at index. More...
 
NetworkStateListener getStateListener ()
 State listener or null if not set. More...
 
void setStateListener (NetworkStateListener listener)
 Set state listener or null if not set. More...
 

Static Public Attributes

Value types
static final int VALUE_INTEGER = 0
 Integer value. More...
 
static final int VALUE_FLOAT = 1
 Floating point value. More...
 
static final int VALUE_STRING = 2
 String value. More...
 
static final int VALUE_POINT2 = 3
 2-component integer point value. More...
 
static final int VALUE_POINT3 = 4
 3-component integer point value. More...
 
static final int VALUE_VECTOR3 = 5
 3-component floating point vector value. More...
 
static final int VALUE_QUATERNION = 6
 4-ocmponent floating point quaternion value. More...
 
Formats
static final int SINT8 = 0
 Signed 8-bit integer. More...
 
static final int UINT8 = 1
 Unsigned 8-bit integer. More...
 
static final int SINT16 = 2
 Signed 16-bit integer. More...
 
static final int UINT16 = 3
 Unsigned 16-bit integer. More...
 
static final int SINT32 = 4
 Signed 32-bit integer. More...
 
static final int UINT32 = 5
 Unsigned 32-bit integer. More...
 
static final int FLOAT16 = 6
 16-bit floating point. More...
 
static final int FLOAT32 = 7
 32-bit floating point. More...
 
static final int FLOAT64 = 8
 64-bit floating point. More...
 

Detailed Description

Network state.

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addValue()

void addValue ( int  type,
int  format 
)

Add value with type and format.

§ getStateListener()

NetworkStateListener getStateListener ( )

State listener or null if not set.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValueCount()

int getValueCount ( )

Nnumber of values.

§ getValueFloatAt()

float getValueFloatAt ( int  index)

Value of float value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValueFormatAt()

int getValueFormatAt ( int  index)

format of value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValueIntAt()

int getValueIntAt ( int  index)

Value of integer value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValuePoint2At()

Point getValuePoint2At ( int  index)

Value of point-2 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValuePoint3At()

Point3 getValuePoint3At ( int  index)

Value of point-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValueQuaternionAt()

Quaternion getValueQuaternionAt ( int  index)

Value of quaternion value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValueStringAt()

String getValueStringAt ( int  index)

Value of string value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ getValueVectorAt()

Vector getValueVectorAt ( int  index)

Value of vector-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ new()

NetworkState new ( )

Create network state.

§ setStateListener()

void setStateListener ( NetworkStateListener  listener)

Set state listener or null if not set.

§ setValueFloatAt()

void setValueFloatAt ( int  index,
float  value 
)

Set value of float value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ setValueIntAt()

void setValueIntAt ( int  index,
int  value 
)

Set value of integer value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ setValuePoint2At()

void setValuePoint2At ( int  index,
Point  value 
)

Set value of point-2 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ setValuePoint3At()

void setValuePoint3At ( int  index,
Point3  value 
)

Set value of point-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ setValueQuaternionAt()

void setValueQuaternionAt ( int  index,
Quaternion  value 
)

Set value of quaternion value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ setValueStringAt()

void setValueStringAt ( int  index,
String  value 
)

Set value of string value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

§ setValueVector3At()

void setValueVector3At ( int  index,
Vector  value 
)

Set value of vector-3 value at index.

Exceptions
EOutOfBoundaryindex is less than 0 or greater than or equal to getValueCount().

Member Data Documentation

§ FLOAT16

final int FLOAT16 = 6
static

16-bit floating point.

§ FLOAT32

final int FLOAT32 = 7
static

32-bit floating point.

§ FLOAT64

final int FLOAT64 = 8
static

64-bit floating point.

§ SINT16

final int SINT16 = 2
static

Signed 16-bit integer.

§ SINT32

final int SINT32 = 4
static

Signed 32-bit integer.

§ SINT8

final int SINT8 = 0
static

Signed 8-bit integer.

§ UINT16

final int UINT16 = 3
static

Unsigned 16-bit integer.

§ UINT32

final int UINT32 = 5
static

Unsigned 32-bit integer.

§ UINT8

final int UINT8 = 1
static

Unsigned 8-bit integer.

§ VALUE_FLOAT

final int VALUE_FLOAT = 1
static

Floating point value.

§ VALUE_INTEGER

final int VALUE_INTEGER = 0
static

Integer value.

§ VALUE_POINT2

final int VALUE_POINT2 = 3
static

2-component integer point value.

§ VALUE_POINT3

final int VALUE_POINT3 = 4
static

3-component integer point value.

§ VALUE_QUATERNION

final int VALUE_QUATERNION = 6
static

4-ocmponent floating point quaternion value.

§ VALUE_STRING

final int VALUE_STRING = 2
static

String value.

§ VALUE_VECTOR3

final int VALUE_VECTOR3 = 5
static

3-component floating point vector value.


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