summaryrefslogtreecommitdiff
path: root/src/resources/map/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r--src/resources/map/map.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index c753b0202..1a95fced8 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -43,6 +43,8 @@
#include "resources/resourcemanager.h"
#include "resources/subimage.h"
+#include "resources/map/location.h"
+
#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/mkdir.h"
@@ -56,30 +58,6 @@
#include "debug.h"
-/**
- * A location on a tile map. Used for pathfinding, open list.
- */
-struct Location final
-{
- /**
- * Constructor.
- */
- Location(const int px, const int py, MetaTile *const ptile):
- x(px), y(py), tile(ptile)
- {}
-
- /**
- * Comparison operator.
- */
- bool operator< (const Location &loc) const
- {
- return tile->Fcost > loc.tile->Fcost;
- }
-
- int x, y;
- MetaTile *tile;
-};
-
class ActorFunctuator final
{
public: