25 #ifndef EVENTS_TIMERMAN_H 26 #define EVENTS_TIMERMAN_H 30 #include <SDL_timer.h> 35 #include <boost/function.hpp> 112 #define TimerMan Events::TimerManager::instance() 114 #endif // EVENTS_TIMERMAN_H
Class and macro for implementing singletons.
#define START_IGNORE_IMPLICIT_FALLTHROUGH
static uint32 timerCallback(uint32 interval, void *data)
void removeTimer(TimerHandle &handle)
Remove that timer function.
The global timer manager.
Generic template base class for implementing the singleton design pattern.
std::list< TimerID >::iterator _iterator
Low-level type definitions to handle fixed width types portably.
#define STOP_IGNORE_IMPLICIT_FALLTHROUGH
boost::function< uint32(uint32)> TimerFunc
A timer callback function.
std::list< TimerID > _timers
void addTimer(uint32 interval, TimerHandle &handle, const TimerFunc &func)
Add a function to be called regularly.
Compiler-specific defines to mark an implicit switch-case fallthrough.