|
OpenTTD
|
Original pathfinder for ships; very simple. More...
#include "../../direction_type.h"#include "../../tile_type.h"#include "../../track_type.h"#include "../../vehicle_type.h"Go to the source code of this file.
Functions | |
| Track | OPFShipChooseTrack (const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found) |
| Finds the best path for given ship using OPF. More... | |
Original pathfinder for ships; very simple.
Definition in file opf_ship.h.
| Track OPFShipChooseTrack | ( | const Ship * | v, |
| TileIndex | tile, | ||
| DiagDirection | enterdir, | ||
| TrackBits | tracks, | ||
| bool & | path_found | ||
| ) |
Finds the best path for given ship using OPF.
| v | the ship that needs to find a path |
| tile | the tile to find the path from (should be next tile the ship is about to enter) |
| enterdir | diagonal direction which the ship will enter this new tile from |
| tracks | available tracks on the new tile (to choose from) |
| path_found | [out] Whether a path has been found (true) or has been guessed (false) |
Finds the best path for given ship using OPF.
| v | The ship. | |
| tile | The tile we are about to enter. | |
| enterdir | The direction entering the tile. | |
| tracks | The tracks available on new tile. | |
| [out] | path_found | Whether a path has been found. |
Definition at line 196 of file opf_ship.cpp.