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

State machine condition evaluating a boolean parameter table entry. More...

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

Public Member Functions

bool evaluateCondition (SMContext context, Dictionary parameters)
 Evaluate condition.
bool getCompareValue ()
 Default compare against value.
bool 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.
bool getEqual ()
 Evaluates to true if values are equal.
String getParameterNameCompareValue ()
 Use named parameter as source of compare value if not null.
SMConditionParameterTableBool negated ()
 Create condition testing the exact opposite.
SMConditionParameterTableBool new (ParameterTableEntry entry, bool defaultValue, bool equal, bool compareValue)
 Create condition.
SMConditionParameterTableBool new (ParameterTableEntry entry, bool defaultValue, bool equal, bool compareValue, String parameterNameCompareValue)
 Create condition.
SMConditionParameterTableBool new (ParameterTableEntry entry, bool defaultValue, bool equal, ParameterTableEntry entryCompareValue, bool compareValue, String parameterNameCompareValue)
 Create condition.
void setCompareValue (bool compareValue)
 Set default compare against value.
void setDefaultValue (bool 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 setEqual (bool equal)
 Set evaluates to true if values are equal.
void setParameterNameCompareValue (String name)
 Use named parameter as source of compare value if not null.

Detailed Description

State machine condition evaluating a boolean parameter table entry.

Member Function Documentation

◆ evaluateCondition()

bool Dragengine.StateMachineSystem.SMConditionParameterTableBool.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()

bool Dragengine.StateMachineSystem.SMConditionParameterTableBool.getCompareValue ( )

Default compare against value.

Referenced by evaluateCondition().

◆ getDefaultValue()

bool Dragengine.StateMachineSystem.SMConditionParameterTableBool.getDefaultValue ( )

Default value if entry to compare is not null.

Referenced by setCompareValue().

◆ getEntry()

ParameterTableEntry Dragengine.StateMachineSystem.SMConditionParameterTableBool.getEntry ( )

Parameter table entry to compare.

References new().

Referenced by setEqual().

◆ getEntryCompareValue()

ParameterTableEntry Dragengine.StateMachineSystem.SMConditionParameterTableBool.getEntryCompareValue ( )

Parameter table entry to compare against.

Referenced by evaluateCondition().

◆ getEqual()

bool Dragengine.StateMachineSystem.SMConditionParameterTableBool.getEqual ( )

Evaluates to true if values are equal.

Referenced by negated().

◆ getParameterNameCompareValue()

String Dragengine.StateMachineSystem.SMConditionParameterTableBool.getParameterNameCompareValue ( )

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

Referenced by evaluateCondition().

◆ negated()

SMConditionParameterTableBool Dragengine.StateMachineSystem.SMConditionParameterTableBool.negated ( )

Create condition testing the exact opposite.

References getEqual(), and setEqual().

Referenced by evaluateCondition().

◆ new() [1/3]

SMConditionParameterTableBool Dragengine.StateMachineSystem.SMConditionParameterTableBool.new ( ParameterTableEntry entry,
bool defaultValue,
bool equal,
bool compareValue )

Create condition.

References new().

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

◆ new() [2/3]

SMConditionParameterTableBool Dragengine.StateMachineSystem.SMConditionParameterTableBool.new ( ParameterTableEntry entry,
bool defaultValue,
bool equal,
bool compareValue,
String parameterNameCompareValue )

Create condition.

References new().

◆ new() [3/3]

SMConditionParameterTableBool Dragengine.StateMachineSystem.SMConditionParameterTableBool.new ( ParameterTableEntry entry,
bool defaultValue,
bool equal,
ParameterTableEntry entryCompareValue,
bool compareValue,
String parameterNameCompareValue )

Create condition.

◆ setCompareValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableBool.setCompareValue ( bool compareValue)

Set default compare against value.

References getDefaultValue().

Referenced by evaluateCondition().

◆ setDefaultValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableBool.setDefaultValue ( bool defaultValue)

Set default value if entry to compare is not null.

Referenced by setParameterNameCompareValue().

◆ setEntry()

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

Set parameter table entry to compare.

References new().

Referenced by setEntryCompareValue().

◆ setEntryCompareValue()

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

Set parameter table entry to compare against.

References new(), and setEntry().

Referenced by evaluateCondition().

◆ setEqual()

void Dragengine.StateMachineSystem.SMConditionParameterTableBool.setEqual ( bool equal)

Set evaluates to true if values are equal.

References getEntry().

Referenced by negated().

◆ setParameterNameCompareValue()

void Dragengine.StateMachineSystem.SMConditionParameterTableBool.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: