Maps
[sdlbotor.git] / Game.h
blobf47244538b339aa2c7212d3dc93a4fbed9eb417c
1 #ifndef GAME_H
2 #define GAME_H
4 #include <time.h>
5 #include "Tileset.h"
6 #include "SDLVideoOut.h"
7 #include "Map.h"
9 namespace botor
12 class Game
15 static SDLVideoOut *video;
16 static Tileset tileset;
17 static Map map;
20 SDL_Surface* bmp;
21 int x, y;
23 bool game_is_running;
25 clock_t nextUpdate;
27 static const int MAX_FRAMESKIP = 10;
28 static const int SKIP_FRAMES = 1000 / CLOCKS_PER_SEC;
30 public:
34 Game();
35 ~Game();
37 void Initialize();
38 void DeInitialize();
40 void Update();
41 void HandleInput();
42 void Draw();
44 void run();
46 static SDLVideoOut *getVideo();
47 static Tileset *getTileset();
48 static Map *getMap();
56 #endif