Drag[en]gine Script Module DragonScript  1.21
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. More...
 
BehaviorTree getBehaviorTree ()
 BehaviorTree or null if not present. More...
 
BehaviorTree getBehaviorTree (StubWithProperties stub, ElementClass eclass)
 BehaviorTree modified by stub property if present. More...
 
bool getHasPreloaded ()
 Property has been preloaded. More...
 
LoadBehaviorTree getLoader ()
 BehaviorTree loader. More...
 
String getPath ()
 Path to behavior tree. More...
 
bool logPreloadProblems (ElementClass elementClass, Console console)
 Log preloading problems. More...
 
ECPBehaviorTree new (String name, LoadBehaviorTree loader)
 Create property. More...
 
ECPBehaviorTree new (String name, LoadBehaviorTree loader, String path)
 Create property with initial path. More...
 
void preloadResources (ElementClass elementClass, PreloadCounter counter)
 Preload resources if supported. More...
 
void setBehaviorTree (BehaviorTree behaviorTree)
 Set behavior tree or null if not present. More...
 
void setPath (String path)
 Set path to behavior tree. More...
 
void setValue (Object value)
 Set value of property from XML decoded value. More...
 
- Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty
void dispose ()
 Dispose of element class property to break reference loops. More...
 
String getName ()
 Name. More...
 
ElementClassProperty new (String name)
 Create property. More...
 

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

◆ getBehaviorTree() [1/2]

BehaviorTree Dragengine.Scenery.ECPBehaviorTree.getBehaviorTree ( )

BehaviorTree or null if not present.

◆ 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.

◆ getHasPreloaded()

bool Dragengine.Scenery.ECPBehaviorTree.getHasPreloaded ( )

Property has been preloaded.

◆ getLoader()

LoadBehaviorTree Dragengine.Scenery.ECPBehaviorTree.getLoader ( )

BehaviorTree loader.

◆ getPath()

String Dragengine.Scenery.ECPBehaviorTree.getPath ( )

Path to behavior tree.

◆ logPreloadProblems()

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

Log preloading problems.

Returns
True if problems are present.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ new() [1/2]

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

Create property.

◆ new() [2/2]

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

Create property with initial path.

◆ preloadResources()

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

Preload resources if supported.

Reimplemented from Dragengine.Scenery.ElementClassProperty.

◆ setBehaviorTree()

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

Set behavior tree or null if not present.

◆ setPath()

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

Set path to behavior tree.

◆ setValue()

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

Set value of property from XML decoded value.

Reimplemented from Dragengine.Scenery.ElementClassProperty.


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