1 #ifndef STEP_TRIGGER_HPP
2 #define STEP_TRIGGER_HPP
20 first_step(first_step_in==-1 ? period : first_step_in),
28 (step>=first_step && steps_since_first%
period==0) &&
StepTrigger(int period, int first_step_in=-1, int last_step_in=-1)
Definition: step_trigger.hpp:15
bool has_been_triggered(int step) const
Definition: step_trigger.hpp:35
int period
Number of steps between trigger.
Definition: step_trigger.hpp:6
bool initialized
Definition: step_trigger.hpp:5
StepTrigger()
Definition: step_trigger.hpp:12
int first_step
First step it can be called.
Definition: step_trigger.hpp:7
int trigger_count(int step) const
Definition: step_trigger.hpp:50
bool is_triggered(int step) const
Definition: step_trigger.hpp:25
int get_period() const
Definition: step_trigger.hpp:41
int last_step
Last step it can be called.
Definition: step_trigger.hpp:8
Definition: step_trigger.hpp:4