Struct amethyst::StateMachine [] [src]

pub struct StateMachine<'a> { /* fields omitted */ }

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

Methods

impl<'a> StateMachine<'a>
[src]

[src]

Creates a new state machine with the given initial state.

[src]

Checks whether the state machine is running.

[src]

Initializes the state machine.

Panics

Panics if no states are present in the stack.

[src]

Passes a single event to the active state to handle.

[src]

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

[src]

Updates the currently active state immediately.

Trait Implementations

impl<'a> Debug for StateMachine<'a>
[src]

[src]

Formats the value using the given formatter.