Drag[en]gine Script Module DragonScript  1.21
Dragengine.StateMachineSystem.StateMachine Class Reference

State machine. More...

Inheritance diagram for Dragengine.StateMachineSystem.StateMachine:

Public Member Functions

void addState (SMState state)
 Add state. More...
 
String getInitialState ()
 Initial state. More...
 
SMState getStateAt (String id)
 State with identifier or null if absent. More...
 
int getStateCount ()
 Count of states. More...
 
bool hasStateAt (String id)
 State with identifier is present. More...
 
StateMachine new ()
 Create behavior tree. More...
 
void setInitialState (String initialState)
 Set initial state. More...
 

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.

◆ getInitialState()

String Dragengine.StateMachineSystem.StateMachine.getInitialState ( )

Initial state.

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

StateMachine Dragengine.StateMachineSystem.StateMachine.new ( )

Create behavior tree.

◆ setInitialState()

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

Set initial state.


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