|
Drag[en]gine Script Module DragonScript 1.32.1
|
State machine condition evaluating a floating point parameter table entry. More...
Classes | |
| enum | Operator |
| Compare operator. More... | |
Public Member Functions | |
| bool | evaluateCondition (SMContext context, Dictionary parameters) |
| Evaluate condition. | |
| float | getCompareValue () |
| Default compare against value. | |
| float | 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. | |
| float | getThreshold () |
| Threshold value. | |
| SMConditionParameterTableFloat | negated () |
| Create condition testing the exact opposite. | |
| SMConditionParameterTableFloat | new (ParameterTableEntry entry, float defaultValue, Operator operator, float compareValue) |
| Create condition. | |
| SMConditionParameterTableFloat | new (ParameterTableEntry entry, float defaultValue, Operator operator, float compareValue, String parameterNameCompareValue) |
| Create condition. | |
| SMConditionParameterTableFloat | new (ParameterTableEntry entry, float defaultValue, Operator operator, ParameterTableEntry entryCompareValue, float compareValue, String parameterNameCompareValue) |
| Create condition. | |
| void | setCompareValue (float compareValue) |
| Set default compare against value. | |
| void | setDefaultValue (float 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. | |
| void | setThreshold (float threshold) |
| Set threshold value. | |
State machine 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.StateMachineSystem.SMConditionParameterTableFloat.evaluateCondition | ( | SMContext | 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.StateMachineSystem.SMCondition.
| float Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getCompareValue | ( | ) |
Default compare against value.
| float Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getDefaultValue | ( | ) |
Default value if entry to compare is not null.
| ParameterTableEntry Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getEntry | ( | ) |
Parameter table entry to compare.
| ParameterTableEntry Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getEntryCompareValue | ( | ) |
Parameter table entry to compare against.
| Operator Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getOperator | ( | ) |
Compare operator from eOperators.
| String Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getParameterNameCompareValue | ( | ) |
Use named parameter as source of compare value if not null.
| float Dragengine.StateMachineSystem.SMConditionParameterTableFloat.getThreshold | ( | ) |
Threshold value.
| SMConditionParameterTableFloat Dragengine.StateMachineSystem.SMConditionParameterTableFloat.negated | ( | ) |
Create condition testing the exact opposite.
| SMConditionParameterTableFloat Dragengine.StateMachineSystem.SMConditionParameterTableFloat.new | ( | ParameterTableEntry | entry, |
| float | defaultValue, | ||
| Operator | operator, | ||
| float | compareValue | ||
| ) |
Create condition.
| SMConditionParameterTableFloat Dragengine.StateMachineSystem.SMConditionParameterTableFloat.new | ( | ParameterTableEntry | entry, |
| float | defaultValue, | ||
| Operator | operator, | ||
| float | compareValue, | ||
| String | parameterNameCompareValue | ||
| ) |
Create condition.
| SMConditionParameterTableFloat Dragengine.StateMachineSystem.SMConditionParameterTableFloat.new | ( | ParameterTableEntry | entry, |
| float | defaultValue, | ||
| Operator | operator, | ||
| ParameterTableEntry | entryCompareValue, | ||
| float | compareValue, | ||
| String | parameterNameCompareValue | ||
| ) |
Create condition.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setCompareValue | ( | float | compareValue | ) |
Set default compare against value.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setDefaultValue | ( | float | defaultValue | ) |
Set default value if entry to compare is not null.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setEntry | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to compare.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setEntryCompareValue | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to compare against.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setOperator | ( | Operator | operator | ) |
Set compare operator from eOperators.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setParameterNameCompareValue | ( | String | name | ) |
Use named parameter as source of compare value if not null.
| void Dragengine.StateMachineSystem.SMConditionParameterTableFloat.setThreshold | ( | float | threshold | ) |
Set threshold value.