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