|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior tree condition evaluating an integer parameter table entry. More...
Classes | |
| enum | Operator |
| Compare operator. More... | |
Public Member Functions | |
| bool | evaluateCondition (BTContext context, Dictionary parameters) |
| Evaluate condition. | |
| int | getCompareValue () |
| Default compare against value. | |
| int | getDefaultValue () |
| Default value if entry to compare is not null. | |
| ParameterTableEntry | getEntry () |
| Parameter table entry to compare. | |
| ParameterTableEntry | getEntryCompareValue () |
| Parameter table entry to compare against. | |
| Operator | getOperator () |
| Compare operator from eOperators. | |
| String | getParameterNameCompareValue () |
| Use named parameter as source of compare value if not null. | |
| BTConditionParameterTableInt | negated () |
| Create condition testing the exact opposite. | |
| BTConditionParameterTableInt | new (ParameterTableEntry entry, int defaultValue, Operator operator, int compareValue) |
| Create condition. | |
| BTConditionParameterTableInt | new (ParameterTableEntry entry, int defaultValue, Operator operator, int compareValue, String parameterNameCompareValue) |
| Create condition. | |
| BTConditionParameterTableInt | new (ParameterTableEntry entry, int defaultValue, Operator operator, ParameterTableEntry entryCompareValue, int compareValue, String parameterNameCompareValue) |
| Create condition. | |
| void | setCompareValue (int compareValue) |
| Set default compare against value. | |
| void | setDefaultValue (int defaultValue) |
| Set default value if entry to compare is not null. | |
| void | setEntry (ParameterTableEntry entry) |
| Set parameter table entry to compare. | |
| void | setEntryCompareValue (ParameterTableEntry entry) |
| Set parameter table entry to compare against. | |
| void | setOperator (Operator operator) |
| Set compare operator from eOperators. | |
| void | setParameterNameCompareValue (String name) |
| Use named parameter as source of compare value if not null. | |
Public Attributes | |
| int | pCompareValue |
| int | pDefaultValue |
| ParameterTableEntry | pEntry |
| ParameterTableEntry | pEntryCompareValue |
| Operator | pOperator |
| String | pParameterNameCompareValue |
Behavior tree condition evaluating an integer parameter table entry.
Compares the value of a parameter table entry against a static value or another parameter table entry.
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.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.
| int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getCompareValue | ( | ) |
Default compare against value.
| int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getDefaultValue | ( | ) |
Default value if entry to compare is not null.
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getEntry | ( | ) |
Parameter table entry to compare.
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getEntryCompareValue | ( | ) |
Parameter table entry to compare against.
| Operator Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getOperator | ( | ) |
Compare operator from eOperators.
| String Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getParameterNameCompareValue | ( | ) |
Use named parameter as source of compare value if not null.
| BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.negated | ( | ) |
Create condition testing the exact opposite.
| BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.new | ( | ParameterTableEntry | entry, |
| int | defaultValue, | ||
| Operator | operator, | ||
| int | compareValue | ||
| ) |
Create condition.
| BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.new | ( | ParameterTableEntry | entry, |
| int | defaultValue, | ||
| Operator | operator, | ||
| int | compareValue, | ||
| String | parameterNameCompareValue | ||
| ) |
Create condition.
| BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.new | ( | ParameterTableEntry | entry, |
| int | defaultValue, | ||
| Operator | operator, | ||
| ParameterTableEntry | entryCompareValue, | ||
| int | compareValue, | ||
| String | parameterNameCompareValue | ||
| ) |
Create condition.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setCompareValue | ( | int | compareValue | ) |
Set default compare against value.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setDefaultValue | ( | int | defaultValue | ) |
Set default value if entry to compare is not null.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setEntry | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to compare.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setEntryCompareValue | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to compare against.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setOperator | ( | Operator | operator | ) |
Set compare operator from eOperators.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setParameterNameCompareValue | ( | String | name | ) |
Use named parameter as source of compare value if not null.
| int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pCompareValue |
| int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pDefaultValue |
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pEntry |
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pEntryCompareValue |
| Operator Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pOperator |
| String Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pParameterNameCompareValue |