Drag[en]gine Script Module DragonScript  1.23
Dragengine.StateMachineSystem.SMActionTrigger Class Reference

State machine action manipulating trigger target. More...

Inheritance diagram for Dragengine.StateMachineSystem.SMActionTrigger:
Dragengine.StateMachineSystem.SMAction

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...
 
SMActionTrigger new (SMActionTrigger action)
 Create copy of action. More...
 
SMActionTrigger new (StringID name, Action action)
 Create action using BaseGameApp trigger table. More...
 
SMActionTrigger new (TSTriggerTable triggerTable, StringID name, Action action)
 Create action. More...
 
void runAction (SMContext 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...
 

Protected Member Functions

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

Detailed Description

State machine action manipulating trigger target.

Member Function Documentation

◆ getAction()

Action Dragengine.StateMachineSystem.SMActionTrigger.getAction ( )

◆ getName()

StringID Dragengine.StateMachineSystem.SMActionTrigger.getName ( )

Name of the trigger to set.

◆ getTriggerTable()

TSTriggerTable Dragengine.StateMachineSystem.SMActionTrigger.getTriggerTable ( )

Trigger table.

◆ getTriggerTarget()

TSTriggerTarget Dragengine.StateMachineSystem.SMActionTrigger.getTriggerTarget ( )

Cached trigger target.

◆ new() [1/3]

SMActionTrigger Dragengine.StateMachineSystem.SMActionTrigger.new ( SMActionTrigger  action)

Create copy of action.

◆ new() [2/3]

SMActionTrigger Dragengine.StateMachineSystem.SMActionTrigger.new ( StringID  name,
Action  action 
)

Create action using BaseGameApp trigger table.

◆ new() [3/3]

SMActionTrigger Dragengine.StateMachineSystem.SMActionTrigger.new ( TSTriggerTable  triggerTable,
StringID  name,
Action  action 
)

Create action.

◆ runAction()

void Dragengine.StateMachineSystem.SMActionTrigger.runAction ( SMContext  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.StateMachineSystem.SMAction.

◆ setAction()

void Dragengine.StateMachineSystem.SMActionTrigger.setAction ( Action  action)

Set action.

◆ setName()

void Dragengine.StateMachineSystem.SMActionTrigger.setName ( StringID  name)

Set name of the trigger to set.

◆ setTriggerTable()

void Dragengine.StateMachineSystem.SMActionTrigger.setTriggerTable ( TSTriggerTable  triggerTable)
protected

Set trigger table.


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