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

Behavior tree. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BehaviorTree:

Public Member Functions

String getFilename ()
 Filename or null.
BTRule getRootRule ()
 Root rule.
BTRule getRuleWithID (String id)
 Registered rule with identifier or null if absent.
bool hasRuleWithID (String id)
 Registered rule with identifier is present.
BehaviorTree new ()
 Create behavior tree.
BehaviorTree new (String filename)
 Create behavior tree with filename.
void registerRule (BTRule rule)
 Register rule for retrieval by identifier.
void setRootRule (BTRule rule)
 Set root rule.

Public Attributes

String pFilename
BTRule pRootRule
Dictionary pRuleMap

Detailed Description

Behavior tree.

Default behavior tree contains BTRuleFailure root rule with id "root".

Member Function Documentation

◆ getFilename()

String Dragengine.BehaviorTreeSystem.BehaviorTree.getFilename ( )

Filename or null.

Version
1.26

References getFilename(), getRuleWithID(), pFilename, pRuleMap, and registerRule().

Referenced by getFilename().

◆ getRootRule()

BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.getRootRule ( )

Root rule.

Referenced by setRootRule().

◆ getRuleWithID()

BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.getRuleWithID ( String id)

Registered rule with identifier or null if absent.

References pRootRule, and setRootRule().

Referenced by getFilename().

◆ hasRuleWithID()

bool Dragengine.BehaviorTreeSystem.BehaviorTree.hasRuleWithID ( String id)

Registered rule with identifier is present.

References pRootRule.

Referenced by registerRule().

◆ new() [1/2]

BehaviorTree Dragengine.BehaviorTreeSystem.BehaviorTree.new ( )

Create behavior tree.

References new(), pRootRule, and pRuleMap.

Referenced by new().

◆ new() [2/2]

BehaviorTree Dragengine.BehaviorTreeSystem.BehaviorTree.new ( String filename)

Create behavior tree with filename.

Version
1.26

References pFilename.

◆ registerRule()

void Dragengine.BehaviorTreeSystem.BehaviorTree.registerRule ( BTRule rule)

Register rule for retrieval by identifier.

Exceptions
EInvalidParamRule has null identifier.
EInvalidParamAnother rule with the same ID is already registered.

References hasRuleWithID(), and pRuleMap.

Referenced by getFilename().

◆ setRootRule()

void Dragengine.BehaviorTreeSystem.BehaviorTree.setRootRule ( BTRule rule)

Set root rule.

References getRootRule().

Referenced by getRuleWithID().

Member Data Documentation

◆ pFilename

String Dragengine.BehaviorTreeSystem.BehaviorTree.pFilename

Referenced by getFilename(), and new().

◆ pRootRule

BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.pRootRule

Referenced by getRuleWithID(), hasRuleWithID(), and new().

◆ pRuleMap

Dictionary Dragengine.BehaviorTreeSystem.BehaviorTree.pRuleMap

Referenced by getFilename(), new(), and registerRule().


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