|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior tree action updating parameter table entry. More...
Classes | |
| enum | Operator |
| Update operator. More... | |
Public Member Functions | |
| float | getDefaultValue () |
| Default value if entry is not null. | |
| ParameterTableEntry | getEntry () |
| Parameter table entry to update. | |
| ParameterTableEntry | getEntryUpdateValue () |
| Parameter table entry to use as update value. | |
| Operator | getOperator () |
| Update operator from eOperators. | |
| String | getParameterNameUpdateValue () |
| Use named parameter as source of update value if not null. | |
| float | getUpdateValue () |
| Default update value. | |
| BTActionParameterTable | new (ParameterTableEntry entry, float defaultValue, Operator operator, float updateValue) |
| Create action. | |
| BTActionParameterTable | new (ParameterTableEntry entry, float defaultValue, Operator operator, float updateValue, String parameterNameUpdateValue) |
| Create action. | |
| BTActionParameterTable | new (ParameterTableEntry entry, float defaultValue, Operator operator, ParameterTableEntry entryUpdateValue, float updateValue, String parameterNameUpdateValue) |
| Create action. | |
| BTResult | runAction (BTContext context, Dictionary parameters) |
| Run action. | |
| void | setDefaultValue (float defaultValue) |
| Set default value if entry is not null. | |
| void | setEntry (ParameterTableEntry entry) |
| Set parameter table entry to update. | |
| void | setEntryUpdateValue (ParameterTableEntry entry) |
| Set parameter table entry to use as update value. | |
| void | setOperator (Operator operator) |
| Set update operator from eOperators. | |
| void | setParameterNameUpdateValue (String name) |
| Use named parameter as source of update value if not null. | |
| void | setUpdateValue (float updateValue) |
| Set default update value. | |
Public Attributes | |
| float | pDefaultValue |
| ParameterTableEntry | pEntry |
| ParameterTableEntry | pEntryUpdateValue |
| Operator | pOperator |
| String | pParameterNameUpdateValue |
| float | pUpdateValue |
Behavior tree action updating parameter table entry.
This action always returns BTResult.success.
| float Dragengine.BehaviorTreeSystem.BTActionParameterTable.getDefaultValue | ( | ) |
Default value if entry is not null.
References pDefaultValue, pEntryUpdateValue, and pOperator.
Referenced by setUpdateValue().
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.getEntry | ( | ) |
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.getEntryUpdateValue | ( | ) |
Parameter table entry to use as update value.
Referenced by runAction().
| Operator Dragengine.BehaviorTreeSystem.BTActionParameterTable.getOperator | ( | ) |
Update operator from eOperators.
Referenced by setParameterNameUpdateValue().
| String Dragengine.BehaviorTreeSystem.BTActionParameterTable.getParameterNameUpdateValue | ( | ) |
Use named parameter as source of update value if not null.
References pDefaultValue.
Referenced by runAction().
| float Dragengine.BehaviorTreeSystem.BTActionParameterTable.getUpdateValue | ( | ) |
| BTActionParameterTable Dragengine.BehaviorTreeSystem.BTActionParameterTable.new | ( | ParameterTableEntry | entry, |
| float | defaultValue, | ||
| Operator | operator, | ||
| float | updateValue ) |
Create action.
References new().
Referenced by getEntry(), new(), new(), setEntry(), and setEntryUpdateValue().
| BTActionParameterTable Dragengine.BehaviorTreeSystem.BTActionParameterTable.new | ( | ParameterTableEntry | entry, |
| float | defaultValue, | ||
| Operator | operator, | ||
| float | updateValue, | ||
| String | parameterNameUpdateValue ) |
Create action.
References new().
| BTActionParameterTable Dragengine.BehaviorTreeSystem.BTActionParameterTable.new | ( | ParameterTableEntry | entry, |
| float | defaultValue, | ||
| Operator | operator, | ||
| ParameterTableEntry | entryUpdateValue, | ||
| float | updateValue, | ||
| String | parameterNameUpdateValue ) |
Create action.
| BTResult Dragengine.BehaviorTreeSystem.BTActionParameterTable.runAction | ( | BTContext | context, |
| Dictionary | parameters ) |
Run action.
| 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.BTAction.
References getEntryUpdateValue(), getParameterNameUpdateValue(), getUpdateValue(), pEntry, pEntryUpdateValue, pOperator, pParameterNameUpdateValue, pUpdateValue, runAction(), setEntryUpdateValue(), setOperator(), setParameterNameUpdateValue(), and setUpdateValue().
Referenced by runAction().
| void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setDefaultValue | ( | float | defaultValue | ) |
Set default value if entry is not null.
References pParameterNameUpdateValue, and pUpdateValue.
Referenced by setParameterNameUpdateValue().
| void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setEntry | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to update.
Referenced by setEntryUpdateValue().
| void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setEntryUpdateValue | ( | ParameterTableEntry | entry | ) |
Set parameter table entry to use as update value.
References new(), and setEntry().
Referenced by runAction().
| void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setOperator | ( | Operator | operator | ) |
| void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setParameterNameUpdateValue | ( | String | name | ) |
Use named parameter as source of update value if not null.
References getOperator(), pDefaultValue, pOperator, and setDefaultValue().
Referenced by runAction().
| void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setUpdateValue | ( | float | updateValue | ) |
| float Dragengine.BehaviorTreeSystem.BTActionParameterTable.pDefaultValue |
Referenced by getDefaultValue(), getParameterNameUpdateValue(), and setParameterNameUpdateValue().
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.pEntry |
Referenced by getUpdateValue(), runAction(), setEntry(), and setOperator().
| ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.pEntryUpdateValue |
Referenced by getDefaultValue(), and runAction().
| Operator Dragengine.BehaviorTreeSystem.BTActionParameterTable.pOperator |
Referenced by getDefaultValue(), runAction(), and setParameterNameUpdateValue().
| String Dragengine.BehaviorTreeSystem.BTActionParameterTable.pParameterNameUpdateValue |
Referenced by runAction(), and setDefaultValue().
| float Dragengine.BehaviorTreeSystem.BTActionParameterTable.pUpdateValue |
Referenced by runAction(), and setDefaultValue().