]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Map.h
added grid lock checking in map state
[l2e.git] / src / map / Map.h
index 9fb24afc9dd305e67d9e27d108e70621806dea11..340c76c707d691951a68afbc8de283fd36aecac4 100644 (file)
@@ -8,18 +8,14 @@
 #ifndef MAP_MAP_H_
 #define MAP_MAP_H_
 
+#include "fwd.h"
 #include "../geometry/Vector.h"
+#include "../graphics/fwd.h"
 
 #include <SDL.h>
 
-namespace graphics {
-       class Sprite;
-}
-
 namespace map {
 
-class Area;
-
 class Map {
 
 public:
@@ -27,6 +23,10 @@ public:
        ~Map() { }
 
 public:
+       const graphics::Sprite *Tileset() const { return tileset; }
+       const Area &AreaAt(const geometry::Vector<int> &) const;
+       const Tile &TileAt(const geometry::Vector<int> &) const;
+
        void Render(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
 
 // temporary setters