|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior tree condition combinding one or more conditions. More...
Classes | |
| enum | Mode |
| Combine modes. More... | |
Public Member Functions | |
| void | addCondition (String condition) |
| Add condition. | |
| bool | evaluateCondition (BTContext context, Dictionary parameters) |
| Evaluate condition. | |
| 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. | |
| Mode | getMode () |
| Combine mode from eCombineModes. | |
| int | indexOfCondition (String condition) |
| Index of condition or -1 if absent. | |
| BTConditionCombine | new (Mode mode) |
| Create condition. | |
| BTConditionCombine | new (Mode mode, String condition1, String condition2) |
| Create condition using two conditions. | |
| BTConditionCombine | new (Mode mode, String condition1, String condition2, String condition3) |
| Create condition using three conditions. | |
| BTConditionCombine | new (Mode mode, String condition1, String condition2, String condition3, String condition4) |
| Create condition using four conditions. | |
| void | removeAllConditions () |
| Remove all conditions. | |
| void | removeCondition (String condition) |
| Remove condition. | |
| void | setMode (Mode mode) |
| Set combine mode from eCombineModes. | |
Public Attributes | |
| Array | pConditions |
| Mode | pMode |
Behavior tree condition combinding one or more conditions.
Useful to create a complex condition out of group of simple conditions. The conditions are stored as identifiers so they can be reused.
| void Dragengine.BehaviorTreeSystem.BTConditionCombine.addCondition | ( | String | condition | ) |
Add condition.
| bool Dragengine.BehaviorTreeSystem.BTConditionCombine.evaluateCondition | ( | BTContext | context, |
| Dictionary | parameters | ||
| ) |
Evaluate condition.
| parameters | Dictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared. |
Implements Dragengine.BehaviorTreeSystem.BTCondition.
| String Dragengine.BehaviorTreeSystem.BTConditionCombine.findCondition | ( | Block | ablock | ) |
Find condition with block with parameter String.
| void Dragengine.BehaviorTreeSystem.BTConditionCombine.forEachCondition | ( | Block | ablock | ) |
Visit conditions with block with parameter String.
| String Dragengine.BehaviorTreeSystem.BTConditionCombine.getConditionAt | ( | int | index | ) |
Get condition at index.
| int Dragengine.BehaviorTreeSystem.BTConditionCombine.getConditionCount | ( | ) |
Number of conditions.
| Mode Dragengine.BehaviorTreeSystem.BTConditionCombine.getMode | ( | ) |
Combine mode from eCombineModes.
| int Dragengine.BehaviorTreeSystem.BTConditionCombine.indexOfCondition | ( | String | condition | ) |
Index of condition or -1 if absent.
| BTConditionCombine Dragengine.BehaviorTreeSystem.BTConditionCombine.new | ( | Mode | mode | ) |
Create condition.
| BTConditionCombine Dragengine.BehaviorTreeSystem.BTConditionCombine.new | ( | Mode | mode, |
| String | condition1, | ||
| String | condition2 | ||
| ) |
Create condition using two conditions.
| BTConditionCombine Dragengine.BehaviorTreeSystem.BTConditionCombine.new | ( | Mode | mode, |
| String | condition1, | ||
| String | condition2, | ||
| String | condition3 | ||
| ) |
Create condition using three conditions.
| BTConditionCombine Dragengine.BehaviorTreeSystem.BTConditionCombine.new | ( | Mode | mode, |
| String | condition1, | ||
| String | condition2, | ||
| String | condition3, | ||
| String | condition4 | ||
| ) |
Create condition using four conditions.
| void Dragengine.BehaviorTreeSystem.BTConditionCombine.removeAllConditions | ( | ) |
Remove all conditions.
| void Dragengine.BehaviorTreeSystem.BTConditionCombine.removeCondition | ( | String | condition | ) |
Remove condition.
| void Dragengine.BehaviorTreeSystem.BTConditionCombine.setMode | ( | Mode | mode | ) |
Set combine mode from eCombineModes.
| Array Dragengine.BehaviorTreeSystem.BTConditionCombine.pConditions |
| Mode Dragengine.BehaviorTreeSystem.BTConditionCombine.pMode |