Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.StateMachineSystem.SMConditionParameterTableInt Class Reference

State machine condition evaluating an integer parameter table entry. More...

Inheritance diagram for Dragengine.StateMachineSystem.SMConditionParameterTableInt:
Dragengine.StateMachineSystem.SMCondition

Classes

enum  Operator
 Compare operator. More...

Public Member Functions

bool evaluateCondition (SMContext 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.
SMConditionParameterTableInt negated ()
 Create condition testing the exact opposite.
SMConditionParameterTableInt new (ParameterTableEntry entry, int defaultValue, Operator operator, int compareValue)
 Create condition.
SMConditionParameterTableInt new (ParameterTableEntry entry, int defaultValue, Operator operator, int compareValue, String parameterNameCompareValue)
 Create condition.
SMConditionParameterTableInt 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.

Detailed Description

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.

Member Function Documentation

◆ evaluateCondition()

bool Dragengine.StateMachineSystem.SMConditionParameterTableInt.evaluateCondition ( SMContext context,
Dictionary parameters )

Evaluate condition.

Parameters
parametersDictionary 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.

References evaluateCondition(), getCompareValue(), getEntryCompareValue(), getParameterNameCompareValue(), negated(), new(), setCompareValue(), setEntryCompareValue(), and setParameterNameCompareValue().

Referenced by evaluateCondition().

◆ getCompareValue()

int Dragengine.StateMachineSystem.SMConditionParameterTableInt.getCompareValue ( )

Default compare against value.

Referenced by evaluateCondition().

◆ getDefaultValue()

int Dragengine.StateMachineSystem.SMConditionParameterTableInt.getDefaultValue ( )

Default value if entry to compare is not null.

Referenced by setCompareValue().

◆ getEntry()

ParameterTableEntry Dragengine.StateMachineSystem.SMConditionParameterTableInt.getEntry ( )

Parameter table entry to compare.

References new().

Referenced by setOperator().

◆ getEntryCompareValue()

ParameterTableEntry Dragengine.StateMachineSystem.SMConditionParameterTableInt.getEntryCompareValue ( )

Parameter table entry to compare against.

Referenced by evaluateCondition().

◆ getOperator()

Operator Dragengine.StateMachineSystem.SMConditionParameterTableInt.getOperator ( )

Compare operator from eOperators.

Referenced by negated().

◆ getParameterNameCompareValue()

String Dragengine.StateMachineSystem.SMConditionParameterTableInt.getParameterNameCompareValue ( )

Use named parameter as source of compare value if not null.

Referenced by evaluateCondition().

◆ negated()

SMConditionParameterTableInt Dragengine.StateMachineSystem.SMConditionParameterTableInt.negated ( )

Create condition testing the exact opposite.

References getOperator(), and setOperator().

Referenced by evaluateCondition().

◆ new() [1/3]

SMConditionParameterTableInt Dragengine.StateMachineSystem.SMConditionParameterTableInt.new ( ParameterTableEntry entry,
int defaultValue,
Operator operator,
int compareValue )

Create condition.

References new().

Referenced by evaluateCondition(), getEntry(), new(), new(), setEntry(), and setEntryCompareValue().

◆ new() [2/3]

SMConditionParameterTableInt Dragengine.StateMachineSystem.SMConditionParameterTableInt.new ( ParameterTableEntry entry,
int defaultValue,
Operator operator,
int compareValue,
String parameterNameCompareValue )

Create condition.

References new().

◆ new() [3/3]

SMConditionParameterTableInt Dragengine.StateMachineSystem.SMConditionParameterTableInt.new ( ParameterTableEntry entry,
int defaultValue,
Operator operator,
ParameterTableEntry entryCompareValue,
int compareValue,
String parameterNameCompareValue )

Create condition.

◆ setCompareValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableInt.setCompareValue ( int compareValue)

Set default compare against value.

References getDefaultValue().

Referenced by evaluateCondition().

◆ setDefaultValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableInt.setDefaultValue ( int defaultValue)

Set default value if entry to compare is not null.

Referenced by setParameterNameCompareValue().

◆ setEntry()

void Dragengine.StateMachineSystem.SMConditionParameterTableInt.setEntry ( ParameterTableEntry entry)

Set parameter table entry to compare.

References new().

Referenced by setEntryCompareValue().

◆ setEntryCompareValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableInt.setEntryCompareValue ( ParameterTableEntry entry)

Set parameter table entry to compare against.

References new(), and setEntry().

Referenced by evaluateCondition().

◆ setOperator()

void Dragengine.StateMachineSystem.SMConditionParameterTableInt.setOperator ( Operator operator)

Set compare operator from eOperators.

References getEntry().

Referenced by negated().

◆ setParameterNameCompareValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableInt.setParameterNameCompareValue ( String name)

Use named parameter as source of compare value if not null.

References setDefaultValue().

Referenced by evaluateCondition().


The documentation for this class was generated from the following file: