From 0b1ea91fcc77961913af35b89751171327656fb1 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 29 Mar 2011 01:58:35 +0200 Subject: Made the Map::findPath() private as it should be used internally. I also precised the find/Pixel/Tile/Path() documentation. --- src/map.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index e807e2ae..a2bd791a 100644 --- a/src/map.h +++ b/src/map.h @@ -294,26 +294,20 @@ class Map : public Properties { return checkNodeOffsets(radius, walkMask, Position(x, y)); } /** - * Find a pixel path from one location to the next. - * Path node are centered on their corresponding tiles in that case. + * Find a tile-centered path in pixel coordinates + * from one location to the next. */ Path findTilePath(int startPixelX, int startPixelY, int endPixelX, int endPixelY, unsigned char walkMask, int maxCost = 20); /** - * Find a pixel path from one location to the next. + * Find a pixel path from one location to the next using free offsets. */ Path findPixelPath(int startPixelX, int startPixelY, int destPixelX, int destPixelY, int radius, unsigned char walkmask, int maxCost = 20); - /** - * Find a path from one location to the next. - */ - Path findPath(int startX, int startY, int destX, int destY, - unsigned char walkmask, int maxCost = 20); - /** * Adds a particle effect */ @@ -353,6 +347,11 @@ class Map : public Properties void removeActor(Actors::iterator iterator); private: + /** + * Find a path from one location to the next in tile coordinates. + */ + Path findPath(int startX, int startY, int destX, int destY, + unsigned char walkmask, int maxCost = 20); enum LayerType { -- cgit v1.2.3-70-g09d2