|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior tree condition evaluating a boolean parameter table entry. More...
Public Member Functions | |
| bool | evaluateCondition (BTContext 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. | |
| BTConditionParameterTableBool | negated () |
| Create condition testing the exact opposite. | |
| BTConditionParameterTableBool | new (ParameterTableEntry entry, bool defaultValue, bool equal, bool compareValue) |
| Create condition. | |
| BTConditionParameterTableBool | new (ParameterTableEntry entry, bool defaultValue, bool equal, bool compareValue, String parameterNameCompareValue) |
| Create condition. | |
| BTConditionParameterTableBool | 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. | |
Public Attributes | |
| bool | pCompareValue |
| bool | pDefaultValue |
| ParameterTableEntry | pEntry |
| ParameterTableEntry | pEntryCompareValue |
| bool | pEqual |
| String | pParameterNameCompareValue |
Behavior tree condition evaluating a boolean parameter table entry.
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.evaluateCondition | ( | BTContext | 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.BehaviorTreeSystem.BTCondition.
References evaluateCondition(), getCompareValue(), getEntryCompareValue(), getParameterNameCompareValue(), negated(), new(), pCompareValue, pEntry, pEntryCompareValue, pEqual, pParameterNameCompareValue, setCompareValue(), setEntryCompareValue(), and setParameterNameCompareValue().
Referenced by evaluateCondition().
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getCompareValue | ( | ) |
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getDefaultValue | ( | ) |
Default value if entry to compare is not null.
References pDefaultValue, pEntryCompareValue, and pEqual.
Referenced by setCompareValue().
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getEntry | ( | ) |
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getEntryCompareValue | ( | ) |
Parameter table entry to compare against.
Referenced by evaluateCondition().
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getEqual | ( | ) |
Evaluates to true if values are equal.
Referenced by negated().
| String Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.getParameterNameCompareValue | ( | ) |
Use named parameter as source of compare value if not null.
References pDefaultValue.
Referenced by evaluateCondition().
| BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.negated | ( | ) |
Create condition testing the exact opposite.
References getEqual(), pEqual, and setEqual().
Referenced by evaluateCondition().
| BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.new | ( | ParameterTableEntry | entry, |
| bool | defaultValue, | ||
| bool | equal, | ||
| bool | compareValue ) |
Create condition.
References new().
Referenced by evaluateCondition(), getEntry(), new(), new(), setEntry(), and setEntryCompareValue().
| BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.new | ( | ParameterTableEntry | entry, |
| bool | defaultValue, | ||
| bool | equal, | ||
| bool | compareValue, | ||
| String | parameterNameCompareValue ) |
Create condition.
References new().
| BTConditionParameterTableBool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.new | ( | ParameterTableEntry | entry, |
| bool | defaultValue, | ||
| bool | equal, | ||
| ParameterTableEntry | entryCompareValue, | ||
| bool | compareValue, | ||
| String | parameterNameCompareValue ) |
Create condition.
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setCompareValue | ( | bool | compareValue | ) |
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setDefaultValue | ( | bool | defaultValue | ) |
Set default value if entry to compare is not null.
References pCompareValue, and pParameterNameCompareValue.
Referenced by setParameterNameCompareValue().
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setEntry | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to compare.
Referenced by setEntryCompareValue().
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setEntryCompareValue | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to compare against.
References new(), and setEntry().
Referenced by evaluateCondition().
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setEqual | ( | bool | equal | ) |
Set evaluates to true if values are equal.
References getEntry(), and pEntry.
Referenced by negated().
| void Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.setParameterNameCompareValue | ( | String | name | ) |
Use named parameter as source of compare value if not null.
References pDefaultValue, and setDefaultValue().
Referenced by evaluateCondition().
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pCompareValue |
Referenced by evaluateCondition(), and setDefaultValue().
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pDefaultValue |
Referenced by getDefaultValue(), getParameterNameCompareValue(), and setParameterNameCompareValue().
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pEntry |
Referenced by evaluateCondition(), getCompareValue(), setEntry(), and setEqual().
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pEntryCompareValue |
Referenced by evaluateCondition(), and getDefaultValue().
| bool Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pEqual |
Referenced by evaluateCondition(), getDefaultValue(), and negated().
| String Dragengine.BehaviorTreeSystem.BTConditionParameterTableBool.pParameterNameCompareValue |
Referenced by evaluateCondition(), and setDefaultValue().