X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmap%2FArea.h;h=0a563390c6221053ef3b2274360b08e197b6880a;hb=07cdc452aeaad73ca9f8f9a3cf9868d2b6c9d5b3;hp=9bca341c11fdbd6d977f7a042e8da98e63e10a12;hpb=59c4aea0762cbc5f1bf74c5b1b35629408fb92af;p=l2e.git diff --git a/src/map/Area.h b/src/map/Area.h index 9bca341..0a56339 100644 --- a/src/map/Area.h +++ b/src/map/Area.h @@ -8,18 +8,14 @@ #ifndef MAP_AREA_H_ #define MAP_AREA_H_ +#include "fwd.h" #include "../geometry/Vector.h" +#include "../graphics/Sprite.h" #include -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 Size() const { return geometry::Vector(Width(), Height()); } + const Tile &TileAt(const geometry::Vector &) const; void Render(SDL_Surface *dest, const graphics::Sprite *tileset, const geometry::Vector &offset) const; + void RenderDebug(SDL_Surface *dest, const graphics::Sprite *tileset, const geometry::Vector &offset) const; // temporary setters public: