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

Behavior tree condition evaluating an integer parameter table entry. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt:
Dragengine.BehaviorTreeSystem.BTCondition

Classes

enum  Operator
 Compare operator. More...

Public Member Functions

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

Public Attributes

int pCompareValue
int pDefaultValue
ParameterTableEntry pEntry
ParameterTableEntry pEntryCompareValue
Operator pOperator
String pParameterNameCompareValue

Detailed Description

Behavior tree 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.BehaviorTreeSystem.BTConditionParameterTableInt.evaluateCondition ( BTContext 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.BehaviorTreeSystem.BTCondition.

References evaluateCondition(), getCompareValue(), getEntryCompareValue(), getParameterNameCompareValue(), negated(), new(), pCompareValue, pEntry, pEntryCompareValue, pOperator, pParameterNameCompareValue, setCompareValue(), setEntryCompareValue(), and setParameterNameCompareValue().

Referenced by evaluateCondition().

◆ getCompareValue()

int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getCompareValue ( )

Default compare against value.

References pEntry.

Referenced by evaluateCondition().

◆ getDefaultValue()

int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getDefaultValue ( )

Default value if entry to compare is not null.

References pDefaultValue, pEntryCompareValue, and pOperator.

Referenced by setCompareValue().

◆ getEntry()

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getEntry ( )

Parameter table entry to compare.

References new().

Referenced by setOperator().

◆ getEntryCompareValue()

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getEntryCompareValue ( )

Parameter table entry to compare against.

Referenced by evaluateCondition().

◆ getOperator()

Operator Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getOperator ( )

Compare operator from eOperators.

Referenced by negated().

◆ getParameterNameCompareValue()

String Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.getParameterNameCompareValue ( )

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

References pDefaultValue.

Referenced by evaluateCondition().

◆ negated()

BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.negated ( )

Create condition testing the exact opposite.

References getOperator(), pOperator, and setOperator().

Referenced by evaluateCondition().

◆ new() [1/3]

BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.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]

BTConditionParameterTableInt Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.new ( ParameterTableEntry entry,
int defaultValue,
Operator operator,
int compareValue,
String parameterNameCompareValue )

Create condition.

References new().

◆ new() [3/3]

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

Create condition.

◆ setCompareValue()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setCompareValue ( int compareValue)

Set default compare against value.

References getDefaultValue().

Referenced by evaluateCondition().

◆ setDefaultValue()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setDefaultValue ( int defaultValue)

Set default value if entry to compare is not null.

References pCompareValue, and pParameterNameCompareValue.

Referenced by setParameterNameCompareValue().

◆ setEntry()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setEntry ( ParameterTableEntry entry)

Set parameter table entry to compare.

References new(), and pEntry.

Referenced by setEntryCompareValue().

◆ setEntryCompareValue()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setEntryCompareValue ( ParameterTableEntry entry)

Set parameter table entry to compare against.

References new(), and setEntry().

Referenced by evaluateCondition().

◆ setOperator()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setOperator ( Operator operator)

Set compare operator from eOperators.

References getEntry(), and pEntry.

Referenced by negated().

◆ setParameterNameCompareValue()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.setParameterNameCompareValue ( String name)

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

References pDefaultValue, and setDefaultValue().

Referenced by evaluateCondition().

Member Data Documentation

◆ pCompareValue

int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pCompareValue

◆ pDefaultValue

int Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pDefaultValue

◆ pEntry

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pEntry

◆ pEntryCompareValue

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pEntryCompareValue

◆ pOperator

Operator Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pOperator

◆ pParameterNameCompareValue

String Dragengine.BehaviorTreeSystem.BTConditionParameterTableInt.pParameterNameCompareValue

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