Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.StateMachineSystem.StateMachine Class Reference

State machine. More...

Inheritance diagram for Dragengine.StateMachineSystem.StateMachine:

Public Member Functions

void addState (SMState state)
 Add state.
 
void addStateReplace (SMState state)
 Add state replacing existing one if present.
 
void forEachState (Block ablock)
 Visit states with block.
 
String getFilename ()
 Filename or null.
 
String getInitialState ()
 Initial state or null if not set.
 
SMState getStateAt (String id)
 State with identifier or null if absent.
 
int getStateCount ()
 Count of states.
 
bool hasStateAt (String id)
 State with identifier is present.
 
StateMachine new ()
 Create state machine.
 
StateMachine new (String filename)
 Create state machine with filename.
 
void removeState (SMState state)
 Remove state.
 
void setInitialState (String initialState)
 Set initial state.
 

Static Public Member Functions

static StateMachine newEmpty ()
 Create state machine with empty state.
 

Public Attributes

String pFilename
 
String pInitialState
 
Dictionary pStates
 

Detailed Description

State machine.

Member Function Documentation

◆ addState()

void Dragengine.StateMachineSystem.StateMachine.addState ( SMState  state)

Add state.

Exceptions
EInvalidParamAnother state with the same identifier is present.

◆ addStateReplace()

void Dragengine.StateMachineSystem.StateMachine.addStateReplace ( SMState  state)

Add state replacing existing one if present.

Version
1.26

◆ forEachState()

void Dragengine.StateMachineSystem.StateMachine.forEachState ( Block  ablock)

Visit states with block.

Version
1.26

Block has signature (SMState).

◆ getFilename()

String Dragengine.StateMachineSystem.StateMachine.getFilename ( )

Filename or null.

Version
1.26

◆ getInitialState()

String Dragengine.StateMachineSystem.StateMachine.getInitialState ( )

Initial state or null if not set.

◆ getStateAt()

SMState Dragengine.StateMachineSystem.StateMachine.getStateAt ( String  id)

State with identifier or null if absent.

◆ getStateCount()

int Dragengine.StateMachineSystem.StateMachine.getStateCount ( )

Count of states.

◆ hasStateAt()

bool Dragengine.StateMachineSystem.StateMachine.hasStateAt ( String  id)

State with identifier is present.

◆ new() [1/2]

StateMachine Dragengine.StateMachineSystem.StateMachine.new ( )

Create state machine.

◆ new() [2/2]

StateMachine Dragengine.StateMachineSystem.StateMachine.new ( String  filename)

Create state machine with filename.

Version
1.26

◆ newEmpty()

static StateMachine Dragengine.StateMachineSystem.StateMachine.newEmpty ( )
static

Create state machine with empty state.

◆ removeState()

void Dragengine.StateMachineSystem.StateMachine.removeState ( SMState  state)

Remove state.

Version
1.26

◆ setInitialState()

void Dragengine.StateMachineSystem.StateMachine.setInitialState ( String  initialState)

Set initial state.

Member Data Documentation

◆ pFilename

String Dragengine.StateMachineSystem.StateMachine.pFilename

◆ pInitialState

String Dragengine.StateMachineSystem.StateMachine.pInitialState

◆ pStates

Dictionary Dragengine.StateMachineSystem.StateMachine.pStates

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