Network State Class. More...
#include <deNetworkState.h>
Public Member Functions | |
Constructors and Destructors | |
| deNetworkState (deNetworkStateManager *manager) | |
| Creates a new network state object. | |
| virtual | ~deNetworkState () |
| Cleans up the network state object. | |
Management | |
| deResource * | GetParent () const |
| Retrieves the parent resource. | |
| void | SetParent (deResource *parent) |
| Sets the parent resource. | |
| bool | IsValidParent (deResource *parent) const |
| Determines if the given resource is a valid parent. | |
Properties | |
| int | GetValueCount () const |
| Retrieves the number of properties. | |
| int | IndexOfValue (deNetworkValue *value) const |
| Retrieves the index of the given value. | |
| deNetworkValue * | GetValueAt (int index) const |
| Retrieves the value at the given index. | |
| void | AddValue (deNetworkValue *value) |
| Adds a value. | |
| void | NotifyValueChanged (int index) const |
| Notifies the network peer that the given value changed. | |
System Peers | |
| deBaseNetworkState * | GetNetworkState () const |
| Retrieves the network system peer object. | |
| void | SetNetworkState (deBaseNetworkState *netState) |
| Sets the network system peer object. | |
| deBaseScriptingNetworkState * | GetScriptingNetworkState () const |
| Retrieves the scripting system peer object. | |
| void | SetScriptingNetworkState (deBaseScriptingNetworkState *scrState) |
| Sets the scripting system peer object. | |
Network State Class.
Stores the state of a game object. States can be positional if attached to a World or positionless if attached to a network player. Only attached network states are updated and monitored.
| deNetworkState::deNetworkState | ( | deNetworkStateManager * | manager ) |
Creates a new network state object.
| virtual deNetworkState::~deNetworkState | ( | ) | [virtual] |
Cleans up the network state object.
| void deNetworkState::AddValue | ( | deNetworkValue * | value ) |
Adds a value.
| deBaseNetworkState* deNetworkState::GetNetworkState | ( | ) | const [inline] |
Retrieves the network system peer object.
| deResource* deNetworkState::GetParent | ( | ) | const [inline] |
Retrieves the parent resource.
| deBaseScriptingNetworkState* deNetworkState::GetScriptingNetworkState | ( | ) | const [inline] |
Retrieves the scripting system peer object.
| deNetworkValue* deNetworkState::GetValueAt | ( | int | index ) | const |
Retrieves the value at the given index.
| int deNetworkState::GetValueCount | ( | ) | const [inline] |
Retrieves the number of properties.
| int deNetworkState::IndexOfValue | ( | deNetworkValue * | value ) | const |
Retrieves the index of the given value.
| bool deNetworkState::IsValidParent | ( | deResource * | parent ) | const |
Determines if the given resource is a valid parent.
| void deNetworkState::NotifyValueChanged | ( | int | index ) | const |
Notifies the network peer that the given value changed.
| void deNetworkState::SetNetworkState | ( | deBaseNetworkState * | netState ) |
Sets the network system peer object.
| void deNetworkState::SetParent | ( | deResource * | parent ) |
Sets the parent resource.
| void deNetworkState::SetScriptingNetworkState | ( | deBaseScriptingNetworkState * | scrState ) |
Sets the scripting system peer object.
1.7.2