Struct amethyst_engine::StateMachine [] [src]

pub struct StateMachine { /* fields omitted */ }

A simple stack-based state machine (pushdown automaton).

Methods

impl StateMachine
[src]

Checks whether the state machine is running.

Initializes the state machine.

Panics

Panics if no states are present in the stack.

Passes a vector of events to the active state to handle.

Updates the currently active state at a steady, fixed interval.

Updates the currently active state immediately.