summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorRoderic Morris <roderic@ccs.neu.edu>2009-07-01 20:39:28 -0400
committerRoderic Morris <roderic@ccs.neu.edu>2009-07-01 20:41:17 -0400
commit0bca1b9756a93d876cbf4a411b47634b87775162 (patch)
tree50eb8a593b1499c694add8e582823dc78b1459cb /src/map.h
parentcc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96 (diff)
downloadmana-client-0bca1b9756a93d876cbf4a411b47634b87775162.tar.gz
mana-client-0bca1b9756a93d876cbf4a411b47634b87775162.tar.bz2
mana-client-0bca1b9756a93d876cbf4a411b47634b87775162.tar.xz
mana-client-0bca1b9756a93d876cbf4a411b47634b87775162.zip
Remove complex path finding for players. Add a simple path finding algorithm to map.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 6baf7411..1cf3c922 100644
--- a/src/map.h
+++ b/src/map.h
@@ -258,6 +258,13 @@ class Map : public Properties
const std::string &getName() const;
/**
+ * Find a simple path from one location to the next.
+ */
+ Path findSimplePath(int startX, int startY,
+ int destX, int destY,
+ unsigned char walkmask);
+
+ /**
* Find a path from one location to the next.
*/
Path findPath(int startX, int startY, int destX, int destY,