Maps
[sdlbotor.git] / Map.h
blob2ed7dd480b8a22e9c9edac9fb4a838ba74a70a30
1 #ifndef MAP_H
2 #define MAP_H
4 #ifdef __linux__
5 #include <SDL/SDL.h>
6 #else
7 #include <SDL.h>
8 #endif
10 #include <vector>
12 #include "Tile.h"
13 #include "Tileset.h"
17 namespace botor
20 class Map
23 Tileset tileset;
25 public:
27 unsigned static const int MAP_WIDTH = 40;
28 unsigned static const int MAP_HEIGHT = 28;
30 private:
32 std::vector<std::vector<Tile> > tiles; // ( MAP_WIDTH, std::vector<Tile>( MAP_HEIGHT ) );
34 public:
36 Map();
38 bool load( const char *fmap );
39 void unload();
41 void Draw( Sint16 mapX = 0, Sint16 mapY = 0 );
47 #endif