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

Behavior tree action updating parameter table entry. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTActionParameterTable:
Dragengine.BehaviorTreeSystem.BTAction

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

Detailed Description

Behavior tree action updating parameter table entry.

This action always returns BTResult.success.

Member Function Documentation

◆ getDefaultValue()

float Dragengine.BehaviorTreeSystem.BTActionParameterTable.getDefaultValue ( )

Default value if entry is not null.

References pDefaultValue, pEntryUpdateValue, and pOperator.

Referenced by setUpdateValue().

◆ getEntry()

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.getEntry ( )

Parameter table entry to update.

References new().

Referenced by setOperator().

◆ getEntryUpdateValue()

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.getEntryUpdateValue ( )

Parameter table entry to use as update value.

Referenced by runAction().

◆ getOperator()

Operator Dragengine.BehaviorTreeSystem.BTActionParameterTable.getOperator ( )

Update operator from eOperators.

Referenced by setParameterNameUpdateValue().

◆ getParameterNameUpdateValue()

String Dragengine.BehaviorTreeSystem.BTActionParameterTable.getParameterNameUpdateValue ( )

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

References pDefaultValue.

Referenced by runAction().

◆ getUpdateValue()

float Dragengine.BehaviorTreeSystem.BTActionParameterTable.getUpdateValue ( )

Default update value.

References pEntry.

Referenced by runAction().

◆ new() [1/3]

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().

◆ new() [2/3]

BTActionParameterTable Dragengine.BehaviorTreeSystem.BTActionParameterTable.new ( ParameterTableEntry entry,
float defaultValue,
Operator operator,
float updateValue,
String parameterNameUpdateValue )

Create action.

References new().

◆ new() [3/3]

BTActionParameterTable Dragengine.BehaviorTreeSystem.BTActionParameterTable.new ( ParameterTableEntry entry,
float defaultValue,
Operator operator,
ParameterTableEntry entryUpdateValue,
float updateValue,
String parameterNameUpdateValue )

Create action.

◆ runAction()

BTResult Dragengine.BehaviorTreeSystem.BTActionParameterTable.runAction ( BTContext context,
Dictionary parameters )

Run action.

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.BTAction.

References getEntryUpdateValue(), getParameterNameUpdateValue(), getUpdateValue(), pEntry, pEntryUpdateValue, pOperator, pParameterNameUpdateValue, pUpdateValue, runAction(), setEntryUpdateValue(), setOperator(), setParameterNameUpdateValue(), and setUpdateValue().

Referenced by runAction().

◆ setDefaultValue()

void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setDefaultValue ( float defaultValue)

Set default value if entry is not null.

References pParameterNameUpdateValue, and pUpdateValue.

Referenced by setParameterNameUpdateValue().

◆ setEntry()

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

Set parameter table entry to update.

References new(), and pEntry.

Referenced by setEntryUpdateValue().

◆ setEntryUpdateValue()

void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setEntryUpdateValue ( ParameterTableEntry entry)

Set parameter table entry to use as update value.

References new(), and setEntry().

Referenced by runAction().

◆ setOperator()

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

Set update operator from eOperators.

References getEntry(), and pEntry.

Referenced by runAction().

◆ setParameterNameUpdateValue()

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().

◆ setUpdateValue()

void Dragengine.BehaviorTreeSystem.BTActionParameterTable.setUpdateValue ( float updateValue)

Set default update value.

References getDefaultValue().

Referenced by runAction().

Member Data Documentation

◆ pDefaultValue

float Dragengine.BehaviorTreeSystem.BTActionParameterTable.pDefaultValue

◆ pEntry

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.pEntry

◆ pEntryUpdateValue

ParameterTableEntry Dragengine.BehaviorTreeSystem.BTActionParameterTable.pEntryUpdateValue

Referenced by getDefaultValue(), and runAction().

◆ pOperator

Operator Dragengine.BehaviorTreeSystem.BTActionParameterTable.pOperator

◆ pParameterNameUpdateValue

String Dragengine.BehaviorTreeSystem.BTActionParameterTable.pParameterNameUpdateValue

Referenced by runAction(), and setDefaultValue().

◆ pUpdateValue

float Dragengine.BehaviorTreeSystem.BTActionParameterTable.pUpdateValue

Referenced by runAction(), and setDefaultValue().


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