Drag[en]gine Script Module DragonScript  1.21
Dragengine.BehaviorTreeSystem.BehaviorTree Class Reference

Behavior tree. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BehaviorTree:

Public Member Functions

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

Public Attributes

BTRule pRootRule
 
Dictionary pRuleMap
 

Detailed Description

Behavior tree.

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

Member Function Documentation

◆ getRootRule()

BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.getRootRule ( )

Root rule.

◆ getRuleWithID()

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

Registered rule with identifier or null if absent.

◆ hasRuleWithID()

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

Registered rule with identifier is present.

◆ new()

BehaviorTree Dragengine.BehaviorTreeSystem.BehaviorTree.new ( )

Create behavior tree.

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

◆ setRootRule()

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

Set root rule.

Member Data Documentation

◆ pRootRule

BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.pRootRule

◆ pRuleMap

Dictionary Dragengine.BehaviorTreeSystem.BehaviorTree.pRuleMap

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