]> git.localhorst.tv Git - l2e.git/blob - src/map/Map.h
added basic map classes
[l2e.git] / src / map / Map.h
1 /*
2  * Map.h
3  *
4  *  Created on: Sep 29, 2012
5  *      Author: holy
6  */
7
8 #ifndef MAP_MAP_H_
9 #define MAP_MAP_H_
10
11 #include "../geometry/Vector.h"
12
13 #include <SDL.h>
14
15 namespace graphics {
16         class Sprite;
17 }
18
19 namespace map {
20
21 class Area;
22
23 class Map {
24
25 public:
26         Map();
27         ~Map() { }
28
29 public:
30         void Render(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
31
32 // temporary setters
33 public:
34         void SetTileset(const graphics::Sprite *t) { tileset = t; }
35         void SetAreas(const Area *a, int num) { areas = a; numAreas = num; }
36         void SetWidth(int w) { width = w; }
37
38 private:
39         const graphics::Sprite *tileset;
40         const Area *areas;
41         int numAreas;
42         int width;
43
44 };
45
46 }
47
48 #endif /* MAP_MAP_H_ */