]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Area.h
made TileAt/AreaAt fail silently
[l2e.git] / src / map / Area.h
index 9bca341c11fdbd6d977f7a042e8da98e63e10a12..d9cc5d0d8784fc49d411a4ebb972a1913763af94 100644 (file)
@@ -8,18 +8,14 @@
 #ifndef MAP_AREA_H_
 #define MAP_AREA_H_
 
+#include "fwd.h"
 #include "../geometry/Vector.h"
+#include "../graphics/Sprite.h"
 
 #include <SDL.h>
 
-namespace graphics {
-       class Sprite;
-}
-
 namespace map {
 
-class Tile;
-
 class Area {
 
 public:
@@ -29,8 +25,11 @@ public:
 public:
        int Width() const { return width; }
        int Height() const { return numTiles / width + (numTiles % width ? 1 : 0); }
+       geometry::Vector<int> Size() const { return geometry::Vector<int>(Width(), Height()); }
+       const Tile *TileAt(const geometry::Vector<int> &) const;
 
        void Render(SDL_Surface *dest, const graphics::Sprite *tileset, const geometry::Vector<int> &offset) const;
+       void RenderDebug(SDL_Surface *dest, const graphics::Sprite *tileset, const geometry::Vector<int> &offset) const;
 
 // temporary setters
 public: