Drag[en]gine Script Module DragonScript  1.23
Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool Class Reference

Behavior tree condition evaluating a boolean parameter table entry. More...

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

Public Member Functions

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

Public Attributes

bool pCompareValue
 
bool pDefaultValue
 
ParameterTableEntry pEntry
 
ParameterTableEntry pEntryCompareValue
 
bool pEqual
 
String pParameterNameCompareValue
 

Detailed Description

Behavior tree condition evaluating a boolean parameter table entry.

Member Function Documentation

◆ evaluateCondition()

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.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.

◆ getCompareValue()

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getCompareValue ( )

Default compare against value.

◆ getDefaultValue()

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getDefaultValue ( )

Default value if entry to compare is not null.

◆ getEntry()

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getEntry ( )

Parameter table entry to compare.

◆ getEntryCompareValue()

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getEntryCompareValue ( )

Parameter table entry to compare against.

◆ getEqual()

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getEqual ( )

Evaluates to true if values are equal.

◆ getParameterNameCompareValue()

String Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getParameterNameCompareValue ( )

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

◆ negated()

BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.negated ( )

Create condition testing the exact opposite.

◆ new() [1/3]

BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.new ( ParameterTableEntry  entry,
bool  defaultValue,
bool  equal,
bool  compareValue 
)

Create condition.

◆ new() [2/3]

BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.new ( ParameterTableEntry  entry,
bool  defaultValue,
bool  equal,
bool  compareValue,
String  parameterNameCompareValue 
)

Create condition.

◆ new() [3/3]

BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.new ( ParameterTableEntry  entry,
bool  defaultValue,
bool  equal,
ParameterTableEntry  entryCompareValue,
bool  compareValue,
String  parameterNameCompareValue 
)

Create condition.

◆ setCompareValue()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setCompareValue ( bool  compareValue)

Set default compare against value.

◆ setDefaultValue()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setDefaultValue ( bool  defaultValue)

Set default value if entry to compare is not null.

◆ setEntry()

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

Set parameter table entry to compare.

◆ setEntryCompareValue()

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

Set parameter table entry to compare against.

◆ setEqual()

void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setEqual ( bool  equal)

Set evaluates to true if values are equal.

◆ setParameterNameCompareValue()

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

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

Member Data Documentation

◆ pCompareValue

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pCompareValue

◆ pDefaultValue

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pDefaultValue

◆ pEntry

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pEntry

◆ pEntryCompareValue

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pEntryCompareValue

◆ pEqual

bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pEqual

◆ pParameterNameCompareValue

String Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pParameterNameCompareValue

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