]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/Map.h
renamed namespace geometry -> math
[l2e.git] / src / map / Map.h
index 06caadf231661b3727864ea55e8954f42ad5a9cb..595e62b35c5926bb6776b516195d8517d575759b 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "Entity.h"
 #include "fwd.h"
-#include "../geometry/Vector.h"
+#include "../math/Vector.h"
 #include "../graphics/fwd.h"
 
 #include <SDL.h>
@@ -32,29 +32,29 @@ public:
        /// The sprite used as the tileset.
        const graphics::Sprite *Tileset() const { return tileset; }
        /// Returns the Area at given pixel coordinates or 0 if off the map.
-       Area *AreaAt(const geometry::Vector<int> &);
-       const Area *AreaAt(const geometry::Vector<int> &) const;
+       Area *AreaAt(const math::Vector<int> &);
+       const Area *AreaAt(const math::Vector<int> &) const;
        /// Returns the Tile at given pixel coordinates or 0 if off the map.
-       Tile *TileAt(const geometry::Vector<int> &);
-       const Tile *TileAt(const geometry::Vector<int> &) const;
+       Tile *TileAt(const math::Vector<int> &);
+       const Tile *TileAt(const math::Vector<int> &) const;
        /// Returns the Trigger at given pixel coordinates or 0 if off the map.
        /// Multiple triggers are not supported. The first one found is returned.
-       Trigger *TriggerAt(const geometry::Vector<int> &);
+       Trigger *TriggerAt(const math::Vector<int> &);
        /// The battle background image for this map if neither the tile nor the
        /// area has one specified.
-       SDL_Surface *BattleBackgroundAt(const geometry::Vector<int> &);
+       SDL_Surface *BattleBackgroundAt(const math::Vector<int> &);
        /// Convert coordinates pixel to tile.
-       geometry::Vector<int> TileCoordinates(const geometry::Vector<int> &) const;
+       math::Vector<int> TileCoordinates(const math::Vector<int> &) const;
 
        Entity *EntitiesBegin() { return entities; }
        Entity *EntitiesEnd() { return entities + numEntities; }
 
        /// Render the map.
        /// Entities are not rendered by this function.
-       void Render(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
+       void Render(SDL_Surface *dest, const math::Vector<int> &offset) const;
        /// Render a debugging overlay that includes collision and trigger
        /// information.
-       void RenderDebug(SDL_Surface *dest, const geometry::Vector<int> &offset) const;
+       void RenderDebug(SDL_Surface *dest, const math::Vector<int> &offset) const;
 
        static void CreateTypeDescription();
        static void Construct(void *);