#include <aedTimer.h>
Inheritance diagram for aedTimer:


Public Member Functions | |
| aedTimer () | |
| ~aedTimer () | |
| void | setAlarm (Uint32 time) |
| Set timer's interval. | |
| void | enable (bool state) |
| Enable/disable timer. | |
Static Private Member Functions | |
| static Uint32 | timer_cb (Uint32 interval, void *p) |
Private Attributes | |
| bool | m_IsEnabled |
| Uint32 | m_AlarmTime |
| Uint32 | m_CurTicks |
| Uint32 | m_LastTicks |
| SDL_TimerID | m_TID |
What else could it be? :) The timer is off by default so you have to explicitly call enable(true) to enable it (assuming you previously set the alarm time interval).
| aedTimer::aedTimer | ( | ) |
| aedTimer::~aedTimer | ( | ) |
| void aedTimer::enable | ( | bool | state | ) |
Enable/disable timer.
| void aedTimer::setAlarm | ( | Uint32 | time | ) |
Set timer's interval.
| time | time in milliseconds |
| static Uint32 aedTimer::timer_cb | ( | Uint32 | interval, | |
| void * | p | |||
| ) | [static, private] |
Uint32 aedTimer::m_AlarmTime [private] |
Uint32 aedTimer::m_CurTicks [private] |
bool aedTimer::m_IsEnabled [private] |
Uint32 aedTimer::m_LastTicks [private] |
SDL_TimerID aedTimer::m_TID [private] |
1.4.7