aedTimer Class Reference

This class implements a timer. More...

#include <aedTimer.h>

Inheritance diagram for aedTimer:

Inheritance graph
[legend]
Collaboration diagram for aedTimer:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

This class implements a timer.

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).


Constructor & Destructor Documentation

aedTimer::aedTimer (  ) 

aedTimer::~aedTimer (  ) 


Member Function Documentation

void aedTimer::enable ( bool  state  ) 

Enable/disable timer.

void aedTimer::setAlarm ( Uint32  time  ) 

Set timer's interval.

Parameters:
time time in milliseconds

static Uint32 aedTimer::timer_cb ( Uint32  interval,
void *  p 
) [static, private]


Member Data Documentation

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]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:25 2007 for MetalWarriors by  doxygen 1.4.7