battlecore::fsm

The fsm module reads and sets the device finite state machine state. Changing the state drives which state handlers run. Include its declarations with include "./battlecore/fsm.bst";.

getState

Returns the name of the current state.

native string battlecore::fsm.getState ();

setState

Transitions the device to the named state.

native void battlecore::fsm.setState (string newVal);