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

Action to run in a state machine state. More...

Inheritance diagram for Dragengine.StateMachineSystem.SMStateAction:

Public Member Functions

SMAction getAction ()
 Action or null if not cached. More...
 
String getActionID ()
 Action identifier. More...
 
Dictionary getParameters ()
 Parameters as Dictionary of type String key and String value. More...
 
SMStateAction new (String actionID)
 Create behavior tree rule. More...
 
void run (SMContext context)
 Run action. More...
 

Detailed Description

Action to run in a state machine state.

SMAction subclasses are created by the game developer and added to the state machine. If state action is run the action is looked up and run.

For performance reasons the action is looked up once then stored in the state.

Member Function Documentation

◆ getAction()

SMAction Dragengine.StateMachineSystem.SMStateAction.getAction ( )

Action or null if not cached.

◆ getActionID()

String Dragengine.StateMachineSystem.SMStateAction.getActionID ( )

Action identifier.

◆ getParameters()

Dictionary Dragengine.StateMachineSystem.SMStateAction.getParameters ( )

Parameters as Dictionary of type String key and String value.

Warning
Do not change the content of the dictionary as it is shared.

◆ new()

SMStateAction Dragengine.StateMachineSystem.SMStateAction.new ( String  actionID)

Create behavior tree rule.

◆ run()

void Dragengine.StateMachineSystem.SMStateAction.run ( SMContext  context)

Run action.


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