X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FArea.h;h=5bdcf0121fdffeeedcc8d1a47b36081d6f493b29;hb=0b11a24a8b08c49d6e4301573602fb6d01e7a8c8;hp=d839e96c0688b3fbf91657bb152ef5e52a03db0d;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/map/Area.h b/src/map/Area.h index d839e96..5bdcf01 100644 --- a/src/map/Area.h +++ b/src/map/Area.h @@ -1,16 +1,14 @@ -/* - * Area.h - * - * Created on: Sep 26, 2012 - * Author: holy - */ - #ifndef MAP_AREA_H_ #define MAP_AREA_H_ -#include "fwd.h" -#include "../geometry/Vector.h" -#include "../graphics/Sprite.h" +namespace graphics { + class Sprite; +} +namespace map { + class Tile; +} + +#include "../math/Vector.h" #include @@ -34,16 +32,20 @@ public: /// Get the height in tiles. int Height() const { return numTiles / width + (numTiles % width ? 1 : 0); } /// Get the size in tiles. - geometry::Vector Size() const { return geometry::Vector(Width(), Height()); } + math::Vector Size() const { return math::Vector(Width(), Height()); } /// Get a tile by tile coordinates (not pixel coordinates!). - Tile *TileAt(const geometry::Vector &); - const Tile *TileAt(const geometry::Vector &) const; + Tile *TileAt(const math::Vector &); + const Tile *TileAt(const math::Vector &) const; /// Get the default battle background for this area. SDL_Surface *BattleBackground() { return battlebg; } - 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; + void Render( + SDL_Surface *dest, + const graphics::Sprite *tileset, + const math::Vector &offset, + unsigned int frame) const; + void RenderDebug(SDL_Surface *dest, const graphics::Sprite *tileset, const math::Vector &offset) const; static void CreateTypeDescription(); static void Construct(void *); @@ -63,4 +65,4 @@ private: } -#endif /* MAP_AREA_H_ */ +#endif