Timer Class Reference

#include <Timer.h>

List of all members.

Public Member Functions

 Timer ()
bool Enabled () const
 Check if timer is enabled.
void Disable ()
 Disable timer: there's no way to enable it other than using SetInterval().
void SetInterval (uint16 interval)
uint Tick (uint16 delta)
void Reset ()


Detailed Description

This is a very simple timer that can be used to schedule different events to happen over certain periods of time. The timer period is limited to about 60000 units, no matter what units - the timer does not make any assumptions about that.


Constructor & Destructor Documentation

Timer::Timer (  )  [inline]

Initialize the timer so that it ticks with specified period. If interval is 0, timer is disabled.


Member Function Documentation

void Timer::Reset (  )  [inline]

Reset the timer so that next event will happen after Interval ticks.

void Timer::SetInterval ( uint16  interval  )  [inline]

Change timer interval

uint Timer::Tick ( uint16  delta  )  [inline]

Tell the timer that a certain interval of time has passed.


The documentation for this class was generated from the following file:
Generated on Wed Aug 30 03:27:47 2006 for SWG EMU by  doxygen 1.4.7