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

Behavior tree action manipulating trigger target. More...

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

Classes

enum  Action
 Actions. More...
 

Public Member Functions

Action getAction ()
 Action. More...
 
StringID getName ()
 Name of the trigger to set. More...
 
TSTriggerTable getTriggerTable ()
 Trigger table. More...
 
TSTriggerTarget getTriggerTarget ()
 Cached trigger target. More...
 
BTActionTrigger new (BTActionTrigger action)
 Create copy of action. More...
 
BTActionTrigger new (StringID name, Action action)
 Create action using BaseGameApp trigger table. More...
 
BTActionTrigger new (TSTriggerTable triggerTable, StringID name, Action action)
 Create action. More...
 
BTResult runAction (BTContext context, Dictionary parameters)
 Run action. More...
 
void setAction (Action action)
 Set action. More...
 
void setName (StringID name)
 Set name of the trigger to set. More...
 

Public Attributes

Action pAction
 
StringID pName
 
TSTriggerTable pTriggerTable
 
TSTriggerTarget pTriggerTarget
 

Protected Member Functions

void setTriggerTable (TSTriggerTable triggerTable)
 Set trigger table. More...
 

Detailed Description

Behavior tree action manipulating trigger target.

This action always returns BTResult.success.

Member Function Documentation

◆ getAction()

Action Dragengine.BehaviorTreeSystem.BTActionTrigger.getAction ( )

◆ getName()

StringID Dragengine.BehaviorTreeSystem.BTActionTrigger.getName ( )

Name of the trigger to set.

◆ getTriggerTable()

TSTriggerTable Dragengine.BehaviorTreeSystem.BTActionTrigger.getTriggerTable ( )

Trigger table.

◆ getTriggerTarget()

TSTriggerTarget Dragengine.BehaviorTreeSystem.BTActionTrigger.getTriggerTarget ( )

Cached trigger target.

◆ new() [1/3]

BTActionTrigger Dragengine.BehaviorTreeSystem.BTActionTrigger.new ( BTActionTrigger  action)

Create copy of action.

◆ new() [2/3]

BTActionTrigger Dragengine.BehaviorTreeSystem.BTActionTrigger.new ( StringID  name,
Action  action 
)

Create action using BaseGameApp trigger table.

◆ new() [3/3]

BTActionTrigger Dragengine.BehaviorTreeSystem.BTActionTrigger.new ( TSTriggerTable  triggerTable,
StringID  name,
Action  action 
)

Create action.

◆ runAction()

BTResult Dragengine.BehaviorTreeSystem.BTActionTrigger.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.

◆ setAction()

void Dragengine.BehaviorTreeSystem.BTActionTrigger.setAction ( Action  action)

Set action.

◆ setName()

void Dragengine.BehaviorTreeSystem.BTActionTrigger.setName ( StringID  name)

Set name of the trigger to set.

◆ setTriggerTable()

void Dragengine.BehaviorTreeSystem.BTActionTrigger.setTriggerTable ( TSTriggerTable  triggerTable)
protected

Set trigger table.

Member Data Documentation

◆ pAction

Action Dragengine.BehaviorTreeSystem.BTActionTrigger.pAction

◆ pName

StringID Dragengine.BehaviorTreeSystem.BTActionTrigger.pName

◆ pTriggerTable

TSTriggerTable Dragengine.BehaviorTreeSystem.BTActionTrigger.pTriggerTable

◆ pTriggerTarget

TSTriggerTarget Dragengine.BehaviorTreeSystem.BTActionTrigger.pTriggerTarget

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