]> git.localhorst.tv Git - l2e.git/blob - src/map/Map.h
check tile lock in Entity
[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 "fwd.h"
12 #include "../geometry/Vector.h"
13 #include "../graphics/fwd.h"
14
15 #include <SDL.h>
16
17 namespace map {
18
19 class Map {
20
21 public:
22         Map();
23         ~Map() { }
24
25 public:
26         const graphics::Sprite *Tileset() const { return tileset; }
27
28         void Render(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
29
30 // temporary setters
31 public:
32         void SetTileset(const graphics::Sprite *t) { tileset = t; }
33         void SetAreas(const Area *a, int num) { areas = a; numAreas = num; }
34         void SetWidth(int w) { width = w; }
35
36 private:
37         const graphics::Sprite *tileset;
38         const Area *areas;
39         int numAreas;
40         int width;
41
42 };
43
44 }
45
46 #endif /* MAP_MAP_H_ */