OpenTTD Source
20241108-master-g80f628063a
|
Implementation of YAPF for water regions, which are used for finding intermediate ship destinations. More...
Go to the source code of this file.
Functions | |
std::vector< WaterRegionPatchDesc > | YapfShipFindWaterRegionPath (const Ship *v, TileIndex start_tile, int max_returned_path_length) |
Finds a path at the water region level. More... | |
Implementation of YAPF for water regions, which are used for finding intermediate ship destinations.
Definition in file yapf_ship_regions.h.
std::vector<WaterRegionPatchDesc> YapfShipFindWaterRegionPath | ( | const Ship * | v, |
TileIndex | start_tile, | ||
int | max_returned_path_length | ||
) |
Finds a path at the water region level.
Note that the starting region is always included if the path was found.
v | The ship to find a path for. |
start_tile | The tile to start searching from. |
max_returned_path_length | The maximum length of the path that will be returned. |
Definition at line 310 of file yapf_ship_regions.cpp.