Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpPathfinder.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
virtual Grid<u16> ComputeShoreGrid(bool expandOnWater = false) = 0; | virtual Grid<u16> ComputeShoreGrid(bool expandOnWater = false) = 0; | ||||
/** | /** | ||||
* Compute a tile-based path from the given point to the goal, and return the set of waypoints. | * Compute a tile-based path from the given point to the goal, and return the set of waypoints. | ||||
* The waypoints correspond to the centers of horizontally/vertically adjacent tiles | * The waypoints correspond to the centers of horizontally/vertically adjacent tiles | ||||
* along the path. | * along the path. | ||||
*/ | */ | ||||
virtual void ComputePath(entity_pos_t x0, entity_pos_t z0, const PathGoal& goal, pass_class_t passClass, WaypointPath& ret) = 0; | virtual void ComputePath(entity_pos_t x0, entity_pos_t z0, const PathGoal& goal, pass_class_t passClass, WaypointPath& ret) const = 0; | ||||
/** | /** | ||||
* Asynchronous version of ComputePath. | * Asynchronous version of ComputePath. | ||||
* The result will be sent as CMessagePathResult to 'notify'. | * The result will be sent as CMessagePathResult to 'notify'. | ||||
* Returns a unique non-zero number, which will match the 'ticket' in the result, | * Returns a unique non-zero number, which will match the 'ticket' in the result, | ||||
* so callers can recognise each individual request they make. | * so callers can recognise each individual request they make. | ||||
*/ | */ | ||||
virtual u32 ComputePathAsync(entity_pos_t x0, entity_pos_t z0, const PathGoal& goal, pass_class_t passClass, entity_id_t notify) = 0; | virtual u32 ComputePathAsync(entity_pos_t x0, entity_pos_t z0, const PathGoal& goal, pass_class_t passClass, entity_id_t notify) = 0; | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator