Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/helpers/PathGoal.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
bool NavcellContainsGoal(int i, int j) const; | bool NavcellContainsGoal(int i, int j) const; | ||||
/** | /** | ||||
* Returns true if any navcell (i, j) where | * Returns true if any navcell (i, j) where | ||||
* min(i0,i1) <= i <= max(i0,i1) | * min(i0,i1) <= i <= max(i0,i1) | ||||
* min(j0,j1) <= j <= max(j0,j1), | * min(j0,j1) <= j <= max(j0,j1), | ||||
* contains a part of the goal area. | * contains a part of the goal area. | ||||
* If so, arguments i and j (if not NULL) are set to the goal navcell nearest | * If so, arguments i and j (if not nullptr) are set to the goal navcell nearest | ||||
* to (i0, j0), assuming the rect has either width or height = 1. | * to (i0, j0), assuming the rect has either width or height = 1. | ||||
*/ | */ | ||||
bool NavcellRectContainsGoal(int i0, int j0, int i1, int j1, int* i, int* j) const; | bool NavcellRectContainsGoal(int i0, int j0, int i1, int j1, int* i, int* j) const; | ||||
/** | /** | ||||
* Returns true if the rectangle defined by (x0,z0)-(x1,z1) (inclusive) | * Returns true if the rectangle defined by (x0,z0)-(x1,z1) (inclusive) | ||||
* contains a part of the goal area. | * contains a part of the goal area. | ||||
*/ | */ | ||||
Show All 14 Lines |
Wildfire Games · Phabricator