diff options
author | Alyssa Milburn | 2011-06-08 23:16:57 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-06-08 23:16:57 +0200 |
commit | 89ed49d7e91c8177b92805e4bc76982fd2371baa (patch) | |
tree | 8b93b5339ef70accc5ed20a50912ccf5a6ad2c38 /engines/tsage/core.h | |
parent | 15292870822ce469963077db32528a1a03cd6bff (diff) | |
download | scummvm-rg350-89ed49d7e91c8177b92805e4bc76982fd2371baa.tar.gz scummvm-rg350-89ed49d7e91c8177b92805e4bc76982fd2371baa.tar.bz2 scummvm-rg350-89ed49d7e91c8177b92805e4bc76982fd2371baa.zip |
TSAGE: Try to clarify more pathfinding code.
Diffstat (limited to 'engines/tsage/core.h')
-rw-r--r-- | engines/tsage/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/core.h b/engines/tsage/core.h index 1bdd49f26b..92907addbc 100644 --- a/engines/tsage/core.h +++ b/engines/tsage/core.h @@ -229,12 +229,12 @@ protected: int regionIndexOf(int xp, int yp) { return regionIndexOf(Common::Point(xp, yp)); } int findClosestRegion(Common::Point &pt, const Common::List<int> &indexList); int checkMover(Common::Point &srcPos, const Common::Point &destPos); - void checkMovement2(const Common::Point &pt1, const Common::Point &pt2, int numSteps, Common::Point &ptOut); + void doStepsOfNpcMovement(const Common::Point &pt1, const Common::Point &pt2, int numSteps, Common::Point &ptOut); int calculateRestOfRoute(int *routeList, int srcRegion, int destRegion, bool &foundRoute); static Common::Point *findLinePoint(RouteEnds *routeEnds, Common::Point *objPos, int length, Common::Point *outPos); static int findDistance(const Common::Point &pt1, const Common::Point &pt2); - static bool sub_F8E5(const Common::Point &pt1, const Common::Point &pt2, const Common::Point &pt3, + static bool sub_F8E5_calculatePoint(const Common::Point &pt1, const Common::Point &pt2, const Common::Point &pt3, const Common::Point &pt4, Common::Point *ptOut = NULL); public: Common::Point _finalDest; |