|
Drag[en]gine Script Module DragonScript 1.35
|
Composable component for application behaviors supporting state machines. More...
Public Member Functions | |
| void | addAllAction (String prefix, String name, BTSMActionCondition action) |
| Add action to all state machines. | |
| void | forEachStateMachine (Block visitor) |
| Visit state machine instances with block. | |
| GABehaviorStateMachine | getStateMachineAt (int index) |
| Get state machine at index. | |
| GAComposeBTSM | new () |
| Create composable application behavior. | |
| void | runEvent (String prefix, String event, Object parameter) |
Public Attributes | |
| Array | pSMContexts |
Composable component for application behaviors supporting state machines.
Stores list of GABehaviorStateMachine behaviors. Also provides helper methods to add actions and conditions to all state machines.
| void Dragengine.GAComposeBTSM.addAllAction | ( | String | prefix, |
| String | name, | ||
| BTSMActionCondition | action ) |
Add action to all state machines.
Referenced by forEachStateMachine().
| void Dragengine.GAComposeBTSM.forEachStateMachine | ( | Block | visitor | ) |
Visit state machine instances with block.
Block receives as argument GABehaviorStateMachine.
References addAllAction(), forEachStateMachine(), getStateMachineAt(), pSMContexts, and runEvent().
Referenced by forEachStateMachine().
| GABehaviorStateMachine Dragengine.GAComposeBTSM.getStateMachineAt | ( | int | index | ) |
| GAComposeBTSM Dragengine.GAComposeBTSM.new | ( | ) |
Create composable application behavior.
Find initialized state machine behaviors and store contexts. Call this during GABehavior.initGame(). Only state machines added before will be initialized by now.
References pSMContexts.
| void Dragengine.GAComposeBTSM.runEvent | ( | String | prefix, |
| String | event, | ||
| Object | parameter ) |
Referenced by forEachStateMachine().
| Array Dragengine.GAComposeBTSM.pSMContexts |
Referenced by forEachStateMachine(), getStateMachineAt(), and new().