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

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

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

Public Member Functions

void copyValue (ElementClass elementClass, ElementClassProperty property)
 Copy value from another element class property of the same type.
BehaviorTree getBehaviorTree ()
 BehaviorTree or null if not present.
BehaviorTree getBehaviorTree (StubWithProperties stub, ElementClass eclass)
 BehaviorTree modified by stub property if present.
bool getHasPreloaded ()
 Property has been preloaded.
LoadBehaviorTree getLoader ()
 BehaviorTree loader.
String getPath ()
 Path to behavior tree.
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems.
ECPBehaviorTree new (String name, LoadBehaviorTree loader)
 Create property.
ECPBehaviorTree new (String name, LoadBehaviorTree loader, String path)
 Create property with initial path.
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported.
void setBehaviorTree (BehaviorTree behaviorTree)
 Set behavior tree or null if not present.
void setPath (String path)
 Set path to behavior tree.
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

BehaviorTree pBehaviorTree
Exception pException
bool pHasPreloaded
LoadBehaviorTree pLoader
String pPath

Detailed Description

BehaviorTree element class property for use with XML loading.

BehaviorTree is set from XML using a path. Loads the behavior tree during preloading. The value of the property is then the loaded resource. If loading fails null behavior tree is stored.

Member Function Documentation

◆ copyValue()

void Dragengine.Scenery.ECPBehaviorTree.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().

◆ getBehaviorTree() [1/2]

BehaviorTree Dragengine.Scenery.ECPBehaviorTree.getBehaviorTree ( )

BehaviorTree or null if not present.

References getPath(), and pPath.

Referenced by getBehaviorTree(), and getHasPreloaded().

◆ getBehaviorTree() [2/2]

BehaviorTree Dragengine.Scenery.ECPBehaviorTree.getBehaviorTree ( StubWithProperties stub,
ElementClass eclass )

BehaviorTree modified by stub property if present.

If named stub property is not present or empty string the stored behavior tree is returned. If the named stub property is present it is loaded as behavior tree resource.

References getBehaviorTree(), getPath(), logPreloadProblems(), new(), pBehaviorTree, pException, pHasPreloaded, pLoader, pPath, and preloadResources().

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPBehaviorTree.getHasPreloaded ( )

Property has been preloaded.

References getBehaviorTree(), and pPath.

Referenced by copyValue().

◆ getLoader()

LoadBehaviorTree Dragengine.Scenery.ECPBehaviorTree.getLoader ( )

BehaviorTree loader.

Referenced by getPath().

◆ getPath()

String Dragengine.Scenery.ECPBehaviorTree.getPath ( )

Path to behavior tree.

References getLoader(), and pLoader.

Referenced by getBehaviorTree(), and getBehaviorTree().

◆ logPreloadProblems()

bool Dragengine.Scenery.ECPBehaviorTree.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 getBehaviorTree().

◆ new() [1/2]

ECPBehaviorTree Dragengine.Scenery.ECPBehaviorTree.new ( String name,
LoadBehaviorTree loader )

Create property.

References new().

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

◆ new() [2/2]

ECPBehaviorTree Dragengine.Scenery.ECPBehaviorTree.new ( String name,
LoadBehaviorTree loader,
String path )

Create property with initial path.

References new(), pLoader, and pPath.

◆ preloadResources()

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

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References setValue().

Referenced by getBehaviorTree().

◆ setBehaviorTree()

void Dragengine.Scenery.ECPBehaviorTree.setBehaviorTree ( BehaviorTree behaviorTree)

Set behavior tree or null if not present.

References setPath().

Referenced by setValue().

◆ setPath()

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

Set path to behavior tree.

Referenced by setBehaviorTree().

◆ setValue()

void Dragengine.Scenery.ECPBehaviorTree.setValue ( Object value)

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

References pBehaviorTree, and setBehaviorTree().

Referenced by preloadResources().

Member Data Documentation

◆ pBehaviorTree

BehaviorTree Dragengine.Scenery.ECPBehaviorTree.pBehaviorTree

Referenced by getBehaviorTree(), and setValue().

◆ pException

Exception Dragengine.Scenery.ECPBehaviorTree.pException

Referenced by getBehaviorTree().

◆ pHasPreloaded

bool Dragengine.Scenery.ECPBehaviorTree.pHasPreloaded

Referenced by copyValue(), and getBehaviorTree().

◆ pLoader

LoadBehaviorTree Dragengine.Scenery.ECPBehaviorTree.pLoader

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

◆ pPath

String Dragengine.Scenery.ECPBehaviorTree.pPath

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