Drag[en]gine Script Module DragonScript 1.23
|
Behavior tree. More...
Public Member Functions | |
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. | |
void | registerRule (BTRule rule) |
Register rule for retrieval by identifier. | |
void | setRootRule (BTRule rule) |
Set root rule. | |
Public Attributes | |
BTRule | pRootRule |
Dictionary | pRuleMap |
Behavior tree.
Default behavior tree contains BTRuleFailure root rule with id "root".
BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.getRootRule | ( | ) |
Root rule.
BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.getRuleWithID | ( | String | id | ) |
Registered rule with identifier or null if absent.
bool Dragengine.BehaviorTreeSystem.BehaviorTree.hasRuleWithID | ( | String | id | ) |
Registered rule with identifier is present.
BehaviorTree Dragengine.BehaviorTreeSystem.BehaviorTree.new | ( | ) |
Create behavior tree.
void Dragengine.BehaviorTreeSystem.BehaviorTree.registerRule | ( | BTRule | rule | ) |
Register rule for retrieval by identifier.
EInvalidParam | Rule has null identifier. |
EInvalidParam | Another rule with the same ID is already registered. |
void Dragengine.BehaviorTreeSystem.BehaviorTree.setRootRule | ( | BTRule | rule | ) |
Set root rule.
BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.pRootRule |
Dictionary Dragengine.BehaviorTreeSystem.BehaviorTree.pRuleMap |