Struct beehave::Conditional [] [src]

pub struct Conditional<F> {
    pub name: &'static str,
    // some fields omitted
}

A simple action performed on the actor.

This transforms the result into either BehaviourResult::Success or BehaviourResult::Failure, depending on the result of the callback function.

Fields

Methods

impl<F> Conditional<F>
[src]

Trait Implementations

impl<T, F> BehaviourNode<T> for Conditional<F> where
    F: FnMut(&mut T) -> bool
[src]