pub trait ConditionBehavior {
// Required method
fn cond(&mut self) -> bool;
// Provided method
fn reset(&mut self) { ... }
}Required Methods§
Sourcefn cond(&mut self) -> bool
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.