Skip to content

StateMachine

Inherits: Node

Description

Abstract class for a state machine

Properties

NameTypeDefault
current_stateNode
statesDictionary

Methods

ReturnsName
void_ready ( )
voidchange_to ( new_state: String )
Nodeget_state ( state_name: String )

Signals

changed (state_name: String , old_state: String )

No description provided yet.

Property Descriptions

current_state: Node

No description provided yet.

states: Dictionary

No description provided yet.

Method Descriptions

_ready ( ) -> void

No description provided yet.

change_to (new_state: String ) -> void

Change the current state to the new state

get_state (state_name: String ) -> Node

Get the state with the given name