diff options
author | frosch <frosch@openttd.org> | 2012-08-18 11:37:47 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-08-18 11:37:47 +0000 |
commit | d17ec934f55f5000cf30aa752437cc48cff19645 (patch) | |
tree | 68d5895b8ad40d12189102617bc8a15a0db3a3f6 /src/pathfinder/yapf/yapf.h | |
parent | 0f0f027379181bf35b3e0b9ae6900cd3b0d82574 (diff) | |
download | openttd-d17ec934f55f5000cf30aa752437cc48cff19645.tar.xz |
(svn r24481) -Feature [FS#5127]: Make the pathfinder decide whether ships shall leave depots towards north or south.
Diffstat (limited to 'src/pathfinder/yapf/yapf.h')
-rw-r--r-- | src/pathfinder/yapf/yapf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pathfinder/yapf/yapf.h b/src/pathfinder/yapf/yapf.h index b02d9d0ee..00eb7e562 100644 --- a/src/pathfinder/yapf/yapf.h +++ b/src/pathfinder/yapf/yapf.h @@ -29,6 +29,13 @@ Track YapfShipChooseTrack(const Ship *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool &path_found); /** + * Returns true if it is better to reverse the ship before leaving depot using YAPF. + * @param v the ship leaving the depot + * @return true if reversing is better + */ +bool YapfShipCheckReverse(const Ship *v); + +/** * Finds the best path for given road vehicle using YAPF. * @param v the RV that needs to find a path * @param tile the tile to find the path from (should be next tile the RV is about to enter) |