diff options
Diffstat (limited to 'engines/toon/path.h')
-rw-r--r-- | engines/toon/path.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/toon/path.h b/engines/toon/path.h index df2b2e94be..7709dfe2a0 100644 --- a/engines/toon/path.h +++ b/engines/toon/path.h @@ -57,13 +57,14 @@ public: PathFinding(ToonEngine *vm); ~PathFinding(); - int32 findPath(int32 x, int32 y, int32 destX, int32 destY); - int32 findClosestWalkingPoint(int32 xx, int32 yy, int32 *fxx, int32 *fyy, int origX = -1, int origY = -1); + void init(Picture *mask); + + bool findPath(int32 x, int32 y, int32 destX, int32 destY); + bool findClosestWalkingPoint(int32 xx, int32 yy, int32 *fxx, int32 *fyy, int origX = -1, int origY = -1); bool isWalkable(int32 x, int32 y); bool isLikelyWalkable(int32 x, int32 y); bool lineIsWalkable(int32 x, int32 y, int32 x2, int32 y2); bool walkLine(int32 x, int32 y, int32 x2, int32 y2); - void init(Picture *mask); void resetBlockingRects(); void addBlockingRect(int32 x1, int32 y1, int32 x2, int32 y2); |