[][src]Struct amethyst::StateMachine

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

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

Methods

impl<'a, T, E: Send + Sync + 'static> StateMachine<'a, T, E>
[src]

Creates a new state machine with the given initial state.

Checks whether the state machine is running.

Initializes the state machine.

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.

Performs a state transition. Usually called by update or fixed_update by the user's defined State. This method can also be called when there are one or multiple Trans stored in the global EventChannel<TransEvent<T, E>>. Such Trans will be passed to this method sequentially in the order of insertion.

Trait Implementations

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

Auto Trait Implementations

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Same for T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Any for T where
    T: Any

impl<T> Erased for T

impl<T> Erased for T

impl<T> SetParameter for T

Sets value as a parameter of self.