Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECPStateMachine Class Reference

StateMachine element class property for use with XML loading. More...

Inheritance diagram for Dragengine.Scenery.ECPStateMachine:
Dragengine.Scenery.ElementClassProperty

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

Detailed Description

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.

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPStateMachine.copyValue ( ElementClass elementClass,
ElementClassProperty property )

Copy value from another element class property of the same type.

Version
1.17

References getHasPreloaded(), and pHasPreloaded.

Referenced by logPreloadProblems().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPStateMachine.getHasPreloaded ( )

Property has been preloaded.

References getStateMachine(), and pPath.

Referenced by copyValue().

◆ getLoader()

LoadStateMachine Dragengine.Scenery.ECPStateMachine.getLoader ( )

StateMachine loader.

Referenced by getPath().

◆ getPath()

String Dragengine.Scenery.ECPStateMachine.getPath ( )

Path to state machine.

References getLoader(), and pLoader.

Referenced by getStateMachine(), and getStateMachine().

◆ getStateMachine() [1/2]

StateMachine Dragengine.Scenery.ECPStateMachine.getStateMachine ( )

StateMachine or null if not present.

References getPath(), and pPath.

Referenced by getHasPreloaded(), and getStateMachine().

◆ getStateMachine() [2/2]

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.

◆ logPreloadProblems()

bool Dragengine.Scenery.ECPStateMachine.logPreloadProblems ( ElementClass elementClass,
Console console )

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References copyValue(), and pPath.

Referenced by getStateMachine().

◆ new() [1/2]

ECPStateMachine Dragengine.Scenery.ECPStateMachine.new ( String name,
LoadStateMachine loader )

Create property.

References new().

Referenced by getStateMachine(), new(), and new().

◆ new() [2/2]

ECPStateMachine Dragengine.Scenery.ECPStateMachine.new ( String name,
LoadStateMachine loader,
String path )

Create property with initial path.

References new(), pLoader, and pPath.

◆ preloadResources()

void Dragengine.Scenery.ECPStateMachine.preloadResources ( ElementClass elementClass,
PreloadCounter counter )

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by getStateMachine().

◆ setPath()

void Dragengine.Scenery.ECPStateMachine.setPath ( String path)

Set path to state machine.

Referenced by setStateMachine().

◆ setStateMachine()

void Dragengine.Scenery.ECPStateMachine.setStateMachine ( StateMachine behaviorTree)

Set state machine or null if not present.

References setPath().

Referenced by setValue().

◆ setValue()

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().

Member Data Documentation

◆ pException

Exception Dragengine.Scenery.ECPStateMachine.pException

Referenced by getStateMachine().

◆ pHasPreloaded

bool Dragengine.Scenery.ECPStateMachine.pHasPreloaded

Referenced by copyValue(), and getStateMachine().

◆ pLoader

LoadStateMachine Dragengine.Scenery.ECPStateMachine.pLoader

Referenced by getPath(), getStateMachine(), and new().

◆ pPath

String Dragengine.Scenery.ECPStateMachine.pPath

◆ pStateMachine

StateMachine Dragengine.Scenery.ECPStateMachine.pStateMachine

Referenced by getStateMachine(), and setValue().


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