Intelligent robot movement.
[sdlbotor.git] / Game.h
blob1be8fdbd1fdea305271f1293d8190d54b5ff8d00
1 #ifndef GAME_H
2 #define GAME_H
4 #include <time.h>
6 #include "Tileset.h"
7 #include "SDLVideoOut.h"
8 #include "Map.h"
9 #include "Player.h"
10 #include "Robot.h"
12 namespace botor
15 class Game
18 static SDLVideoOut *video;
19 static Tileset tileset;
20 static Map map;
21 static Player player;
24 SDL_Surface* bmp;
25 int x, y;
27 bool game_is_running;
29 clock_t nextUpdate;
31 static const int MAX_FRAMESKIP = 10;
32 static const int SKIP_FRAMES = 1000 / CLOCKS_PER_SEC;
34 public:
38 Game();
39 ~Game();
41 void Initialize();
42 void DeInitialize();
44 void Update();
45 void HandleInput( SDL_Event *event );
46 void Draw();
48 void run();
50 static SDLVideoOut *getVideo();
51 static Tileset *getTileset();
52 static Map *getMap();
53 static Player *getPlayer();
61 #endif