OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Static Public Member Functions | Static Private Attributes | List of all members
RunTime Class Reference

#include <RunTime.h>

Collaboration diagram for RunTime:
[legend]

Static Public Member Functions

static void initialize ()
 
static void updateFPS ()
 
static void display ()
 
static KeyboardButton getKeyBinding (ActionEvents event)
 
static void setKeyBinding (ActionEvents event, KeyboardButton button)
 
static std::string getBaseDir ()
 
static void setBaseDir (std::string dir)
 
static std::string getPakDir ()
 
static void setPakDir (std::string dir)
 
static std::string getAudioDir ()
 
static void setAudioDir (std::string dir)
 
static std::string getDataDir ()
 
static void setDataDir (std::string dir)
 
static bool isRunning ()
 
static void setRunning (bool run)
 
static bool getShowFPS ()
 
static void setShowFPS (bool f)
 
static unsigned long getFPS ()
 
static const std::vector< float > & getHistoryFPS ()
 
static float getLastFrameTime ()
 

Static Private Attributes

static std::string baseDir
 
static std::string pakDir
 
static std::string audioDir
 
static std::string dataDir
 
static KeyboardButton keyBindings [ActionEventCount]
 
static bool gameIsRunning = false
 
static bool showFPS = false
 
static unsigned long lastTime = 0
 
static unsigned long lastFrameTime = 0
 
static unsigned long frameCount = 0
 
static unsigned long frameCount2 = 0
 
static unsigned long frameTimeSum = 0
 
static unsigned long frameTimeSum2 = 0
 
static unsigned long fps = 0
 
static std::vector< float > history
 

Detailed Description

Definition at line 14 of file RunTime.h.

Member Function Documentation

void RunTime::initialize ( )
static

Definition at line 33 of file RunTime.cpp.

void RunTime::updateFPS ( )
static

Definition at line 66 of file RunTime.cpp.

void RunTime::display ( )
static

Definition at line 86 of file RunTime.cpp.

KeyboardButton RunTime::getKeyBinding ( ActionEvents  event)
static

Definition at line 56 of file RunTime.cpp.

void RunTime::setKeyBinding ( ActionEvents  event,
KeyboardButton  button 
)
static

Definition at line 61 of file RunTime.cpp.

static std::string RunTime::getBaseDir ( )
inlinestatic

Definition at line 23 of file RunTime.h.

static void RunTime::setBaseDir ( std::string  dir)
inlinestatic

Definition at line 24 of file RunTime.h.

static std::string RunTime::getPakDir ( )
inlinestatic

Definition at line 26 of file RunTime.h.

static void RunTime::setPakDir ( std::string  dir)
inlinestatic

Definition at line 27 of file RunTime.h.

static std::string RunTime::getAudioDir ( )
inlinestatic

Definition at line 29 of file RunTime.h.

static void RunTime::setAudioDir ( std::string  dir)
inlinestatic

Definition at line 30 of file RunTime.h.

static std::string RunTime::getDataDir ( )
inlinestatic

Definition at line 32 of file RunTime.h.

static void RunTime::setDataDir ( std::string  dir)
inlinestatic

Definition at line 33 of file RunTime.h.

static bool RunTime::isRunning ( )
inlinestatic

Definition at line 35 of file RunTime.h.

static void RunTime::setRunning ( bool  run)
inlinestatic

Definition at line 36 of file RunTime.h.

static bool RunTime::getShowFPS ( )
inlinestatic

Definition at line 38 of file RunTime.h.

static void RunTime::setShowFPS ( bool  f)
inlinestatic

Definition at line 39 of file RunTime.h.

static unsigned long RunTime::getFPS ( )
inlinestatic

Definition at line 41 of file RunTime.h.

static const std::vector<float>& RunTime::getHistoryFPS ( )
inlinestatic

Definition at line 42 of file RunTime.h.

static float RunTime::getLastFrameTime ( )
inlinestatic

Definition at line 43 of file RunTime.h.

Member Data Documentation

std::string RunTime::baseDir
staticprivate

Definition at line 46 of file RunTime.h.

std::string RunTime::pakDir
staticprivate

Definition at line 47 of file RunTime.h.

std::string RunTime::audioDir
staticprivate

Definition at line 48 of file RunTime.h.

std::string RunTime::dataDir
staticprivate

Definition at line 49 of file RunTime.h.

KeyboardButton RunTime::keyBindings
staticprivate

Definition at line 51 of file RunTime.h.

bool RunTime::gameIsRunning = false
staticprivate

Definition at line 52 of file RunTime.h.

bool RunTime::showFPS = false
staticprivate

Definition at line 53 of file RunTime.h.

unsigned long RunTime::lastTime = 0
staticprivate

Definition at line 55 of file RunTime.h.

unsigned long RunTime::lastFrameTime = 0
staticprivate

Definition at line 55 of file RunTime.h.

unsigned long RunTime::frameCount = 0
staticprivate

Definition at line 56 of file RunTime.h.

unsigned long RunTime::frameCount2 = 0
staticprivate

Definition at line 56 of file RunTime.h.

unsigned long RunTime::frameTimeSum = 0
staticprivate

Definition at line 57 of file RunTime.h.

unsigned long RunTime::frameTimeSum2 = 0
staticprivate

Definition at line 57 of file RunTime.h.

unsigned long RunTime::fps = 0
staticprivate

Definition at line 58 of file RunTime.h.

std::vector< float > RunTime::history
staticprivate

Definition at line 59 of file RunTime.h.


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