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

Synchronized integer value. More...

Inheritance diagram for SynchronizedInt:

Public Member Functions

Constructors
SynchronizedInt new ()
 Create synchronized integer value with initial value of 0. More...
 
SynchronizedInt new (int value)
 Create synchronized integer value with initial value. More...
 
SynchronizedInt new (SynchronizedInt copy)
 Create copy of synchronized integer value. More...
 
Management
int getValue ()
 Value of network state or local value if not set. More...
 
void setValue (int value)
 Set value and update network state if set. More...
 
NetworkState getNetworkState ()
 Linked network state or null if not set. More...
 
int getNetworkStateValue ()
 Linked network state value index or -1 if not set. More...
 
void setNetworkState (NetworkState state, int value)
 Set network state value to synchronize or null to clear. More...
 

Detailed Description

Synchronized integer value.

Local integer value optionally synchronized across the network using a NetworkState value.

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

NetworkState getNetworkState ( )

Linked network state or null if not set.

int getNetworkStateValue ( )

Linked network state value index or -1 if not set.

int getValue ( )

Value of network state or local value if not set.

SynchronizedInt new ( )

Create synchronized integer value with initial value of 0.

SynchronizedInt new ( int  value)

Create synchronized integer value with initial value.

Create copy of synchronized integer value.

void setNetworkState ( NetworkState  state,
int  value 
)

Set network state value to synchronize or null to clear.

Exceptions
EOutOfBoundaryvalue is less than 0 or larger than or equal to network state value count.
void setValue ( int  value)

Set value and update network state if set.


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