|
| void | startTimer (long id, ms_delta delay, bool oneShot=true, UserData *userData=0) |
| | start new timer that will fire after delay ms
|
| |
| void | cancelTimer (long id) |
| | remove a timer
|
| |
| void | cancelAllTimers () |
| | remove all timers
|
| |
| void | delayTimer (long id, ms_delta delay) |
| | make sure a timer waits at least delay ms before next time it fires, regardless of current interval
|
| |
| void | delayTimerUntil (long id, ms_time msTime) |
| | tell the timer not to fire until OS::getMilliseconds() => msTime
|
| |
| void | pause () |
| | pause all timers (no effect on timers added after pause)
|
| |
| void | unpause () |
| | unpause all timers
|
| |
| bool | isPaused () |
| | check to see if all timers are paused
|
| |
| void | pauseTimer (long id) |
| | pause a particular timer
|
| |
| void | unpauseTimer (long id) |
| | unpause a particular timer
|
| |
| bool | isTimerPaused (long id) |
| | check to see if a particular timer is paused
|
| |
| ms_time | getWhenTimerFiresNext (long id) |
| | return the time (OS::getMilliseconds()) when this timer will fire next, returns timer_Never if it won't fire
|
| |
| void | checkTimers () |
| | fire any timers that are ready to fire
|
| |
| ms_delta | msTillNextFire () |
| | tells us how long it will be (in milliseconds) till the next timer fires
|
| |
| virtual void | addHandler (IEventHandler *inHandler, long inType=all_events) |
| | add a new handler for some event type, or for all events if no type specified
|
| |
| virtual void | removeHandler (IEventHandler *inHandler, long inType=all_events) |
| | Remove a handler for some event type, or for all events if no type specified.
|
| |
| virtual void | clear (bool doRelease=true) |
| | remove all handlers
|
| |
| virtual void | blockEvent (long inEventType) |
| | temporarily ignore all events of a particular type, just drop them on the floor
|
| |
| virtual void | unblockEvent (long inEventType) |
| | stop ignoring events of a particular type, no recovery of previously ignored events
|
| |
| | EventEmitter () |
| | constructor for new event emitter
|
| |
| virtual bool | postEvent (long inEventType, void *inEventData, EventEmitter *fromEmitter=0) |
| | post an event for immediate handling locally, or relay it to the EventManger
|
| |
| | Singleton () |
| |
| virtual | ~Singleton () |
| |
Manage timers that can fire at a particular time, or fire repeatedly. All TimerManager functions are safe to perform while a timer is firing. Functions that alter a timer can be safely used even from within the handler of the timer being changed (ie: while the target timer is in the process of firing)