|
Drag[en]gine Script Module DragonScript 1.35
|
StateMachine element class property for use with XML loading. More...
Public Member Functions | |
| void | copyValue (ElementClass elementClass, ElementClassProperty property) |
| Copy value from another element class property of the same type. | |
| bool | getHasPreloaded () |
| Property has been preloaded. | |
| LoadStateMachine | getLoader () |
| StateMachine loader. | |
| String | getPath () |
| Path to state machine. | |
| StateMachine | getStateMachine () |
| StateMachine or null if not present. | |
| StateMachine | getStateMachine (StubWithProperties stub, ElementClass eclass) |
| StateMachine modified by stub property if present. | |
| bool | logPreloadProblems (ElementClass elementClass, Console console) |
| Log preloading problems. | |
| ECPStateMachine | new (String name, LoadStateMachine loader) |
| Create property. | |
| ECPStateMachine | new (String name, LoadStateMachine loader, String path) |
| Create property with initial path. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
| void | setPath (String path) |
| Set path to state machine. | |
| void | setStateMachine (StateMachine behaviorTree) |
| Set state machine or null if not present. | |
| void | setValue (Object value) |
| Set value of property from XML decoded value. | |
| Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
| void | dispose () |
| Dispose of element class property to break reference loops. | |
| String | getName () |
| Name. | |
| ElementClassProperty | new (String name) |
| Create property. | |
Public Attributes | |
| Exception | pException |
| bool | pHasPreloaded |
| LoadStateMachine | pLoader |
| String | pPath |
| StateMachine | pStateMachine |
StateMachine element class property for use with XML loading.
StateMachine is set from XML using a path. Loads the state machine during preloading. The value of the property is then the loaded resource. If loading fails null state machine is stored.
| void Dragengine.Scenery.ECPStateMachine.copyValue | ( | ElementClass | elementClass, |
| ElementClassProperty | property ) |
Copy value from another element class property of the same type.
References getHasPreloaded(), and pHasPreloaded.
Referenced by logPreloadProblems().
| bool Dragengine.Scenery.ECPStateMachine.getHasPreloaded | ( | ) |
| LoadStateMachine Dragengine.Scenery.ECPStateMachine.getLoader | ( | ) |
StateMachine loader.
Referenced by getPath().
| String Dragengine.Scenery.ECPStateMachine.getPath | ( | ) |
Path to state machine.
References getLoader(), and pLoader.
Referenced by getStateMachine(), and getStateMachine().
| StateMachine Dragengine.Scenery.ECPStateMachine.getStateMachine | ( | ) |
StateMachine or null if not present.
References getPath(), and pPath.
Referenced by getHasPreloaded(), and getStateMachine().
| StateMachine Dragengine.Scenery.ECPStateMachine.getStateMachine | ( | StubWithProperties | stub, |
| ElementClass | eclass ) |
StateMachine modified by stub property if present.
If named stub property is not present or empty string the stored state machine is returned. If the named stub property is present it is loaded as state machine resource.
References getPath(), getStateMachine(), logPreloadProblems(), new(), pException, pHasPreloaded, pLoader, pPath, preloadResources(), and pStateMachine.
| bool Dragengine.Scenery.ECPStateMachine.logPreloadProblems | ( | ElementClass | elementClass, |
| Console | console ) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References copyValue(), and pPath.
Referenced by getStateMachine().
| ECPStateMachine Dragengine.Scenery.ECPStateMachine.new | ( | String | name, |
| LoadStateMachine | loader ) |
| ECPStateMachine Dragengine.Scenery.ECPStateMachine.new | ( | String | name, |
| LoadStateMachine | loader, | ||
| String | path ) |
| void Dragengine.Scenery.ECPStateMachine.preloadResources | ( | ElementClass | elementClass, |
| PreloadCounter | counter ) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References setValue().
Referenced by getStateMachine().
| void Dragengine.Scenery.ECPStateMachine.setPath | ( | String | path | ) |
Set path to state machine.
Referenced by setStateMachine().
| void Dragengine.Scenery.ECPStateMachine.setStateMachine | ( | StateMachine | behaviorTree | ) |
| void Dragengine.Scenery.ECPStateMachine.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References pStateMachine, and setStateMachine().
Referenced by preloadResources().
| Exception Dragengine.Scenery.ECPStateMachine.pException |
Referenced by getStateMachine().
| bool Dragengine.Scenery.ECPStateMachine.pHasPreloaded |
Referenced by copyValue(), and getStateMachine().
| LoadStateMachine Dragengine.Scenery.ECPStateMachine.pLoader |
Referenced by getPath(), getStateMachine(), and new().
| String Dragengine.Scenery.ECPStateMachine.pPath |
Referenced by getHasPreloaded(), getStateMachine(), getStateMachine(), logPreloadProblems(), and new().
| StateMachine Dragengine.Scenery.ECPStateMachine.pStateMachine |
Referenced by getStateMachine(), and setValue().