Timing::TimeSource Class Reference
#include <timesource.h>
Detailed Description
A generic time source object which is attached to the TimeManager. Each time source tracks its own time independently from the other time sources, they can also be paused and unpaused independentlty from each other, and they may also run faster or slower then realtime.To create new time sources, derive a subclass from time source. This is necessary because time source objects are identified by their class id. A positive side effect of this is that time sources are created as singletons, so access is very simple, e.g.:
Time gameTime = GameTime::Instance()->GetTime();
Time source classes are responsible for loading/saving their state into the globals attribute table.
All timesources have to be passiv, everyone who needs time has to get it on its own from one of the different timsources. No time source should set the time in a subsystem activly.
(C) 2007 Radon Labs GmbH