Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.GAComposeBTSM Class Reference

Composable component for application behaviors supporting state machines. More...

Inheritance diagram for Dragengine.GAComposeBTSM:

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

Detailed Description

Composable component for application behaviors supporting state machines.

Version
1.35

Stores list of GABehaviorStateMachine behaviors. Also provides helper methods to add actions and conditions to all state machines.

Member Function Documentation

◆ addAllAction()

void Dragengine.GAComposeBTSM.addAllAction ( String prefix,
String name,
BTSMActionCondition action )

Add action to all state machines.

Referenced by forEachStateMachine().

◆ 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().

◆ getStateMachineAt()

GABehaviorStateMachine Dragengine.GAComposeBTSM.getStateMachineAt ( int index)

Get state machine at index.

References pSMContexts.

Referenced by forEachStateMachine().

◆ new()

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.

◆ runEvent()

void Dragengine.GAComposeBTSM.runEvent ( String prefix,
String event,
Object parameter )

Referenced by forEachStateMachine().

Member Data Documentation

◆ pSMContexts

Array Dragengine.GAComposeBTSM.pSMContexts

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