Divooka Reference

State Machine State

5 nodes

On this page 5

Make State Machine State

Function

This node carries no documentation.

Signature
StateMachineState() -> State Machine State
StateMachineState StateMachineState()

Returns

State Machine StateState Machine State
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
State Machine State
Package
State Machines

Machine

Function

The machine this instance is running in. Set by the runtime when the state is constructed; null
only for an instance constructed outside a machine run.

Signature
Machine(State Machine State: State Machine State) -> State Machine
StateMachineApplication Machine(StateMachineState State Machine State)

Parameters

nametypedefaultdescription
State Machine StateState Machine State—

Returns

resultState Machine
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
State Machine State
Package
State Machines

Update Frequency

Function

How often the machine ticks this state's Update, in HERTZ (ticks per second). Default 60.
Settable at any time - the loop re-reads it every iteration - though "set it during Enter" is the
documented idiom. Values that are not positive finite numbers are read as the 60 Hz default.

Signature
UpdateFrequency(State Machine State: State Machine State) -> Number
double UpdateFrequency(StateMachineState State Machine State)

Parameters

nametypedefaultdescription
State Machine StateState Machine State—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
State Machine State
Package
State Machines

Set Update Frequency

Function

Sets how often this state's Update ticks, in hertz. The loop re-reads the frequency every tick, so
the change takes effect from the next tick on.

Signature
SetUpdateFrequency
    State Machine State: State Machine State
    hertz: Number
void SetUpdateFrequency(
    StateMachineState State Machine State,
    double hertz)

Parameters

nametypedefaultdescription
State Machine StateState Machine State—
hertzNumber—Ticks per second.
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
State Machine State
Package
State Machines

Stop

Function

Ends the machine: the loop stops after the callback that called this returns. No further state is
entered and the active state is not exited - stopping is an end, not a transition.

Signature
Stop(State Machine State: State Machine State)
void Stop(StateMachineState State Machine State)

Parameters

nametypedefaultdescription
State Machine StateState Machine State—
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
State Machine State
Package
State Machines