GG
Public Attributes
GG::Timer Class Reference

#include <Timer.h>

List of all members.

Public Attributes

FiredSignalType FiredSignal

Signal Types

typedef boost::signal< void(unsigned
int, Timer *)> 
FiredSignalType

Structors

 Timer (unsigned int interval, unsigned int start_time=0)
 ~Timer ()

Accessors

unsigned int Interval () const
bool Running () const

Mutators

void Reset (unsigned int start_time=0)
void SetInterval (unsigned int interval)
void Connect (Wnd *wnd)
void Disconnect (Wnd *wnd)
void Start ()
void Stop ()
void Update (unsigned int ticks)

Additional Inherited Members


Detailed Description

Timer provides a means for one or more Wnds to receive periodic notifications of the passage of time.

The rate at which the Timer fires is not realtime. That is, there are no guarantees on the interval between firings other than that a minimum of Interval() ms will have elapsed.

Definition at line 47 of file Timer.h.


Constructor & Destructor Documentation

GG::Timer::Timer ( unsigned int  interval,
unsigned int  start_time = 0 
)
explicit

Basic ctor. Takes an interval and a start time in ms; if the start time is ommitted, the start time will be immediate.


The documentation for this class was generated from the following file: