]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Map.h
implemented map tile anmation
[l2e.git] / src / map / Map.h
index 595e62b35c5926bb6776b516195d8517d575759b..e0a95dd9bca2d062447249a1b9a88b02ae3dfd5f 100644 (file)
@@ -1,10 +1,17 @@
 #ifndef MAP_MAP_H_
 #define MAP_MAP_H_
 
+namespace map {
+       class Area;
+       class Tile;
+       class Trigger;
+}
+namespace math {
+       template<class>
+       class Vector;
+}
+
 #include "Entity.h"
-#include "fwd.h"
-#include "../math/Vector.h"
-#include "../graphics/fwd.h"
 
 #include <SDL.h>
 
@@ -51,7 +58,10 @@ public:
 
        /// Render the map.
        /// Entities are not rendered by this function.
-       void Render(SDL_Surface *dest, const math::Vector<int> &offset) const;
+       void Render(
+                       SDL_Surface *dest,
+                       const math::Vector<int> &offset,
+                       unsigned int frame) const;
        /// Render a debugging overlay that includes collision and trigger
        /// information.
        void RenderDebug(SDL_Surface *dest, const math::Vector<int> &offset) const;
@@ -74,4 +84,4 @@ private:
 
 }
 
-#endif /* MAP_MAP_H_ */
+#endif