diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2009-07-01 20:28:34 -0400 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2009-07-01 20:41:47 -0400 |
commit | 2ea700fc0388d843795b71a9d259876ce975926f (patch) | |
tree | a64bdc3163f0ffb1663e34c3dae8de0c34953220 /src/game-server/map.hpp | |
parent | 6b794e76f8f046dca632299e443129c4f5ca3382 (diff) | |
download | manaserv-2ea700fc0388d843795b71a9d259876ce975926f.tar.gz manaserv-2ea700fc0388d843795b71a9d259876ce975926f.tar.bz2 manaserv-2ea700fc0388d843795b71a9d259876ce975926f.tar.xz manaserv-2ea700fc0388d843795b71a9d259876ce975926f.zip |
Remove complex path finding for players. Add a simple path finding algorithm to map.
Diffstat (limited to 'src/game-server/map.hpp')
-rw-r--r-- | src/game-server/map.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game-server/map.hpp b/src/game-server/map.hpp index 059d9826..90d8ff33 100644 --- a/src/game-server/map.hpp +++ b/src/game-server/map.hpp @@ -173,6 +173,13 @@ class Map unsigned char walkmask, int maxCost = 20); + /** + * Finds a simple path from location to the next. + */ + std::list<PATH_NODE> findSimplePath(int startX, int startY, + int destX, int destY, + unsigned char walkmask); + private: /** * Blockmasks for different entities |