Drag[en]gine Script Module DragonScript Script API  1.0
TimerManager Class Reference
Inheritance diagram for TimerManager:

Public Member Functions

void addTimer (Timer timer)
 
void advance (float elapsed)
 
TimerManager new ()
 
void removeTimer (Timer timer)
 

Static Public Member Functions

static void advanceDefault ()
 
static void advanceDefault (float elapsed)
 
static TimerManager getDefault ()
 

Detailed Description

Manage timers. Provides a default timer manager for simple timer creation. Individual instances of timer managers can be created to provide timer handling at different speeds if required.

Member Function Documentation

§ addTimer()

void addTimer ( Timer  timer)

Register timer.

§ advance()

void advance ( float  elapsed)

Advance all timers. Timer implementation handles triggering. Ensures using SafeArray that each timer is called once per call to advance.

§ advanceDefault() [1/2]

static void advanceDefault ( )
static

Advance timers of the default timer manager. Timer implementation handles triggering. Ensures using SafeArray that each timer is called once per call to advance.

§ advanceDefault() [2/2]

static void advanceDefault ( float  elapsed)
static

Advance timers of the default timer manager. Timer implementation handles triggering. Ensures using SafeArray that each timer is called once per call to advance.

§ getDefault()

static TimerManager getDefault ( )
static

Default timer manager.

§ new()

TimerManager new ( )

Create timer manager.

§ removeTimer()

void removeTimer ( Timer  timer)

Unregister timer.


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