|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior tree rule running if no condition evaluates to false. More...
Public Member Functions | |
| BTRuleRunning | new (String id) |
| Create behavior tree rule. | |
| BTResult | run (BTContext context) |
| Run action. | |
| String | toString () |
Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTRule | |
| void | addCondition (String condition) |
| Add condition. | |
| bool | evaluateConditions (BTContext context) |
| Evaluate all conditions. | |
| String | findCondition (Block ablock) |
| Find condition with block with parameter String. | |
| void | forEachCondition (Block ablock) |
| Visit conditions with block with parameter String. | |
| String | getConditionAt (int index) |
| Get condition at index. | |
| int | getConditionCount () |
| Number of conditions. | |
| ConditionMode | getConditionMode () |
| Condition mode from eConditionModes. | |
| String | getID () |
| Unique rule identifier or null. | |
| Dictionary | getParameters () |
| Parameters as Dictionary of type String key and String value. | |
| BTRule | getParent () |
| Parent rule or null if this is the root rule in a behavior tree. | |
| int | indexOfCondition (String condition) |
| Index of condition or -1 if absent. | |
| void | removeAllConditions () |
| Remove all conditions. | |
| void | removeCondition (String condition) |
| Remove condition. | |
| void | setConditionMode (ConditionMode mode) |
| Set condition mode from eConditionModes. | |
| void | setParent (BTRule rule) |
| Set parent rule or null if this is the root rule in a behavior tree. | |
Additional Inherited Members | |
Public Attributes inherited from Dragengine.BehaviorTreeSystem.BTRule | |
| ConditionMode | pConditionMode |
| Array | pConditions |
| String | pID |
| Dictionary | pParameters |
| WeakReference | pParent |
Behavior tree rule running if no condition evaluates to false.
| BTRuleRunning Dragengine.BehaviorTreeSystem.BTRuleRunning.new | ( | String | id | ) |
Create behavior tree rule.
Reimplemented from Dragengine.BehaviorTreeSystem.BTRule.
| BTResult Dragengine.BehaviorTreeSystem.BTRuleRunning.run | ( | BTContext | context | ) |
Run action.
| String Dragengine.BehaviorTreeSystem.BTRuleRunning.toString | ( | ) |
String representation of object.