Initial import of SDLBotor.
[sdlbotor.git] / Game.h
blob96eb5887fd97022c441cd60dd60407919d1ce0dc
1 #ifndef GAME_H
2 #define GAME_H
4 #include <time.h>
5 #include "SDLVideoOut.h"
7 namespace botor
10 class Game
13 SDLVideoOut *Video;
15 SDL_Surface* bmp;
16 int x, y;
18 bool game_is_running;
20 clock_t nextUpdate;
22 static const int MAX_FRAMESKIP = 10;
23 static const int SKIP_FRAMES = 1000 / CLOCKS_PER_SEC;
26 public:
28 Game();
29 ~Game();
31 void Initialize();
32 void DeInitialize();
34 void Update();
35 void HandleInput();
36 void Draw();
38 void run();
45 #endif