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