Esempio n. 1
0
void SystemTimer::SetNumberLoops(int32 loops) {
	if (IsInitial() == false) {
		IF_PRINT_WARNING(SYSTEM_DEBUG) << "function called when the timer was not in the initial state" << endl;
		return;
	}

	_number_loops = loops;
}
Esempio n. 2
0
void SystemTimer::SetModeOwner(hoa_mode_manager::GameMode* owner) {
	if (IsInitial() == false) {
		IF_PRINT_WARNING(SYSTEM_DEBUG) << "function called when the timer was not in the initial state" << endl;
		return;
	}

	_mode_owner = owner;
}
Esempio n. 3
0
void SystemTimer::SetDuration(uint32 duration) {
	if (IsInitial() == false) {
		IF_PRINT_WARNING(SYSTEM_DEBUG) << "function called when the timer was not in the initial state" << endl;
		return;
	}

	_duration = duration;
}
Esempio n. 4
0
 /**
  * Set the timer's state to "running".
  */
 void Run()
 {
   if (IsInitial() || IsPaused())
     timer_state = TIMER_RUNNING;
 }