Enum big_brain::actions::ActionState[][src]

pub enum ActionState {
    Init,
    Requested,
    Executing,
    Cancelled,
    Success,
    Failure,
}

The current state for an Action.

Variants

Init

Initial state. No action should be performed.

Requested

Action requested. The Action-handling system should start executing this Action ASAP and change the status to the next state.

Executing

The action has ongoing execution. The associated Thinker will try to keep executing this Action as-is until it changes state or it gets Cancelled.

Cancelled

An ongoing Action has been cancelled. The Thinker might set this action for you, so for Actions that execute for longer than a single tick, you must check whether the Cancelled state was set and change do either Success or Failure. Thinkers will wait on Cancelled actions to do any necessary cleanup work, so this can hang your AI if you don’t look for it.

Success

The Action was a success. This is used by Composite Actions to determine whether to continue execution.

Failure

The Action failed. This is used by Composite Actions to determine whether to halt execution.

Implementations

impl ActionState[src]

pub fn new() -> Self[src]

Trait Implementations

impl Clone for ActionState[src]

impl Debug for ActionState[src]

impl Default for ActionState[src]

impl Eq for ActionState[src]

impl PartialEq<ActionState> for ActionState[src]

impl StructuralEq for ActionState[src]

impl StructuralPartialEq for ActionState[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Any + Clone

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> Downcast for T where
    T: Any

impl<T> Downcast<T> for T

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> DynEq for T where
    T: Any + Eq

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromWorld for T where
    T: Default

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> TypeData for T where
    T: 'static + Send + Sync + Clone

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,