From 0bca1b9756a93d876cbf4a411b47634b87775162 Mon Sep 17 00:00:00 2001 From: Roderic Morris Date: Wed, 1 Jul 2009 20:39:28 -0400 Subject: Remove complex path finding for players. Add a simple path finding algorithm to map. --- src/map.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 6baf7411..1cf3c922 100644 --- a/src/map.h +++ b/src/map.h @@ -257,6 +257,13 @@ class Map : public Properties const std::string &getMusicFile() const; 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. */ -- cgit v1.2.3-70-g09d2