Struct amethyst::StateMachine[][src]

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

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

Methods

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

Creates a new state machine with the given initial state.

Checks whether the state machine is running.

Initializes the state machine.

Panics

Panics if no states are present in the stack.

Passes a single event to the active state to handle.

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

Updates the currently active state immediately.

Trait Implementations

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, T> !Send for StateMachine<'a, T>

impl<'a, T> !Sync for StateMachine<'a, T>