Skip to main content

ConditionBehavior

Trait ConditionBehavior 

Source
pub trait ConditionBehavior {
    // Required method
    fn cond(&mut self) -> bool;

    // Provided method
    fn reset(&mut self) { ... }
}

Required Methods§

Source

fn cond(&mut self) -> bool

Evaluate the condition for the current tick.

Returning true maps to TickStatus::Success and false maps to TickStatus::Failure in Condition.

Provided Methods§

Source

fn reset(&mut self)

Reset any condition-local state for a fresh run.

Implementors§