103 if (this->m_counterCycle == 0 && this->m_timeCycle == 0) {
108 bool shouldTrigger =
false;
109 if (this->m_counterCycle > 0) {
110 shouldTrigger = shouldTrigger || this->shouldCounterTrigger();
112 if (this->m_timeCycle > 0) {
113 shouldTrigger = shouldTrigger || this->shouldTimeTrigger(time);
117 if (this->m_counterCycle > 0) {
118 this->updateCounter(shouldTrigger);
120 if (this->m_timeCycle > 0) {
121 this->updateTime(shouldTrigger, time);
124 return shouldTrigger;