22 const int WARNTIME = 20000;
23 unsigned timer_refresh = 0;
24 const unsigned timer_refresh_rate = 50;
30 , last_timestamp_(SDL_GetTicks())
31 , playing_sound_(false)
60 if(
info.ticks(&timer_refresh, timer_refresh_rate)) {
79 const int fadein_ticks = (loop_ticks > WARNTIME / 2) ? loop_ticks - WARNTIME / 2 : 0;
countdown_clock(team &team)
void update_team(int new_timestamp)
void process(events::pump_info &info)
int update_timestamp(int new_timestamp)
bool update(int new_timestamp=SDL_GetTicks())
This class stores all the data for a single 'side' (in game nomenclature).
void set_countdown_time(const int amount) const
int countdown_time() const
void play_timer(const std::string &files, int loop_ticks, int fadein_ticks)