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; }
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; }
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; }
/** * Set the timer's state to "running". */ void Run() { if (IsInitial() || IsPaused()) timer_state = TIMER_RUNNING; }