Skip to main content

Node

Trait Node 

Source
pub trait Node<T>:
    Debug
    + Send
    + Sync {
    // Required method
    fn tick(&mut self, ctx: &mut TickContext<'_, T>) -> Status;

    // Provided methods
    fn abort(&mut self) { ... }
    fn name(&self) -> &str { ... }
}
Expand description

A node in the behavior tree.

Required Methods§

Source

fn tick(&mut self, ctx: &mut TickContext<'_, T>) -> Status

Provided Methods§

Source

fn abort(&mut self)

Called when the node is aborted (parent interrupts it mid-running).

Source

fn name(&self) -> &str

Node identifier for debugging.

Implementors§

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for ActionNode<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for BlackboardHas<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for CheckFloat<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for ConditionNode<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Cooldown<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Failer<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for FireEvent<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Guard<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Inverter<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Parallel<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for RandomSelector<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Repeater<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for RetryUntilFail<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Selector<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Sequence<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for SetBool<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for SetFloat<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for SubTree<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Succeeder<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for TimeLimit<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for Wait<T>

Source§

impl<T: Debug + Send + Sync + 'static> Node<T> for WaitRandom<T>