|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior tree. More...
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 |
Behavior tree.
Default behavior tree contains BTRuleFailure root rule with id "root".
| String Dragengine.BehaviorTreeSystem.BehaviorTree.getFilename | ( | ) |
Filename or null.
| 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.
| BehaviorTree Dragengine.BehaviorTreeSystem.BehaviorTree.new | ( | String | filename | ) |
Create behavior tree with filename.
| 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.
| String Dragengine.BehaviorTreeSystem.BehaviorTree.pFilename |
| BTRule Dragengine.BehaviorTreeSystem.BehaviorTree.pRootRule |
| Dictionary Dragengine.BehaviorTreeSystem.BehaviorTree.pRuleMap |