Classes | Public Member Functions | Protected Attributes | Friends | List of all members
ion::CTimeManager Class Reference

#include <CTimeManager.h>

Inheritance diagram for ion::CTimeManager:
Inheritance graph
[legend]
Collaboration diagram for ion::CTimeManager:
Collaboration graph
[legend]

Classes

class  CUpdateTick
 

Public Member Functions

void Init (CWindowManager *WindowManager)
 
void Start ()
 
void Update ()
 
void SkipElapsedTime ()
 
double GetElapsedTime () const
 Get the time elapsed between this frame and the last frame in seconds. More...
 
double GetActualElapsedTime () const
 Same as ElapsedTime, except before TimeMultiplier is applied. More...
 
double GetRunTime () const
 
double GetTimeMultiplier () const
 
void SetTimeMultiplier (double const TimeMultiplier)
 
CUpdateTickMakeUpdateTick (double const Tick, double const MaxDuration=1.0)
 

Protected Attributes

double ElapsedTime = 0
 
double RunTime = 0
 
double LastTime = 0
 
double TimeMultiplier = 1
 
vector< CUpdateTick * > UpdateTicks
 

Friends

class Singleton< CTimeManager >
 

Additional Inherited Members

- Static Public Member Functions inherited from ion::Singleton< CTimeManager >
static CTimeManagerGet ()
 
static CTimeManagerGetPointer ()
 
- Protected Member Functions inherited from ion::Singleton< CTimeManager >
 Singleton ()
 

Member Function Documentation

double ion::CTimeManager::GetActualElapsedTime ( ) const

Same as ElapsedTime, except before TimeMultiplier is applied.

double ion::CTimeManager::GetElapsedTime ( ) const

Get the time elapsed between this frame and the last frame in seconds.

double ion::CTimeManager::GetRunTime ( ) const
double ion::CTimeManager::GetTimeMultiplier ( ) const
void ion::CTimeManager::Init ( CWindowManager WindowManager)
CTimeManager::CUpdateTick * ion::CTimeManager::MakeUpdateTick ( double const  Tick,
double const  MaxDuration = 1.0 
)
void ion::CTimeManager::SetTimeMultiplier ( double const  TimeMultiplier)
void ion::CTimeManager::SkipElapsedTime ( )
void ion::CTimeManager::Start ( )
void ion::CTimeManager::Update ( )

Friends And Related Function Documentation

friend class Singleton< CTimeManager >
friend

Member Data Documentation

double ion::CTimeManager::ElapsedTime = 0
protected
double ion::CTimeManager::LastTime = 0
protected
double ion::CTimeManager::RunTime = 0
protected
double ion::CTimeManager::TimeMultiplier = 1
protected
vector<CUpdateTick *> ion::CTimeManager::UpdateTicks
protected

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