Engine
The Game Engine for Ian Parberry's "Introduction to Game Physics with Box2D"
 All Classes Files Functions Variables Pages
Timer.h
Go to the documentation of this file.
1 
2 
3 
4 #pragma once
5 
6 #include "Defines.h"
7 
14 
15 class CTimer{ //game timer class
16  private:
17  int m_nStartTime;
18  int m_nCurrentTime;
19  int m_nLevelStartTime;
20  int m_nLevelFinishTime;
21  BOOL m_bLevelTimerOn;
22  public:
23  CTimer();
24  void start();
25  int time();
26  BOOL elapsed(int &start ,int interval);
27  void beginframe();
28  int GetLevelStartTime();
29  int GetLevelElapsedTime();
30  void StartLevelTimer();
31  void StopLevelTimer();
32 }; //CTimer