|
Drag[en]gine Script Module DragonScript 1.32.1
|
Action to run in a state machine state. More...
Public Member Functions | |
| void | addCondition (String condition) |
| Add condition. | |
| bool | evaluateConditions (SMContext context) |
| Evaluate all conditions. | |
| String | findCondition (Block ablock) |
| Find condition with block with parameter String. | |
| void | forEachCondition (Block ablock) |
| Visit conditions with block with parameter String. | |
| String | getActionID () |
| Action identifier or null. | |
| String | getConditionAt (int index) |
| Get condition at index. | |
| int | getConditionCount () |
| Count of conditions. | |
| SMTransition.ConditionMode | getConditionMode () |
| Condition mode from eConditionModes. | |
| Dictionary | getParameters () |
| Parameters as Dictionary of type String key and String value. | |
| String | getStateID () |
| State to transition to after action finished or null. | |
| SMStateAction | new (SMStateAction action) |
| Create copy of state machine action. | |
| SMStateAction | new (String actionID) |
| Create state machine action. | |
| void | setConditionMode (SMTransition.ConditionMode mode) |
| Set condition mode from eConditionModes. | |
| void | setStateID (String id) |
| Set state to transition to after action finished or null. | |
Public Attributes | |
| String | pActionID |
| SMTransition.ConditionMode | pConditionMode |
| Array | pConditions |
| Dictionary | pParameters |
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.
| void Dragengine.StateMachineSystem.SMStateAction.addCondition | ( | String | condition | ) |
Add condition.
| bool Dragengine.StateMachineSystem.SMStateAction.evaluateConditions | ( | SMContext | context | ) |
Evaluate all conditions.
If no condition is present true is returned.
| parameters | Dictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared. |
| String Dragengine.StateMachineSystem.SMStateAction.findCondition | ( | Block | ablock | ) |
Find condition with block with parameter String.
| void Dragengine.StateMachineSystem.SMStateAction.forEachCondition | ( | Block | ablock | ) |
Visit conditions with block with parameter String.
| String Dragengine.StateMachineSystem.SMStateAction.getActionID | ( | ) |
Action identifier or null.
| String Dragengine.StateMachineSystem.SMStateAction.getConditionAt | ( | int | index | ) |
Get condition at index.
| int Dragengine.StateMachineSystem.SMStateAction.getConditionCount | ( | ) |
Count of conditions.
| SMTransition.ConditionMode Dragengine.StateMachineSystem.SMStateAction.getConditionMode | ( | ) |
Condition mode from eConditionModes.
| Dictionary Dragengine.StateMachineSystem.SMStateAction.getParameters | ( | ) |
Parameters as Dictionary of type String key and String value.
| String Dragengine.StateMachineSystem.SMStateAction.getStateID | ( | ) |
State to transition to after action finished or null.
| SMStateAction Dragengine.StateMachineSystem.SMStateAction.new | ( | SMStateAction | action | ) |
Create copy of state machine action.
| SMStateAction Dragengine.StateMachineSystem.SMStateAction.new | ( | String | actionID | ) |
Create state machine action.
| void Dragengine.StateMachineSystem.SMStateAction.setConditionMode | ( | SMTransition.ConditionMode | mode | ) |
Set condition mode from eConditionModes.
| void Dragengine.StateMachineSystem.SMStateAction.setStateID | ( | String | id | ) |
Set state to transition to after action finished or null.
| String Dragengine.StateMachineSystem.SMStateAction.pActionID |
| SMTransition.ConditionMode Dragengine.StateMachineSystem.SMStateAction.pConditionMode |
| Array Dragengine.StateMachineSystem.SMStateAction.pConditions |
| Dictionary Dragengine.StateMachineSystem.SMStateAction.pParameters |