Drag[en]gine Script Module DragonScript
1.23
|
Action to run in a state machine state. More...
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... | |
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.
SMAction Dragengine.StateMachineSystem.SMStateAction.getAction | ( | ) |
Action or null if not cached.
String Dragengine.StateMachineSystem.SMStateAction.getActionID | ( | ) |
Action identifier.
Dictionary Dragengine.StateMachineSystem.SMStateAction.getParameters | ( | ) |
Parameters as Dictionary of type String key and String value.
SMStateAction Dragengine.StateMachineSystem.SMStateAction.new | ( | String | actionID | ) |
Create behavior tree rule.
void Dragengine.StateMachineSystem.SMStateAction.run | ( | SMContext | context | ) |
Run action.