File diff r19549:dd9cbeaec418 → r19550:f624172dec6d
src/pathfinder/npf/npf_func.h
Show inline comments
 
@@ -47,12 +47,19 @@ Trackdir NPFRoadVehicleChooseTrack(const
 
 * @param path_found [out] Whether a path has been found (true) or has been guessed (false)
 
 * @return         the best trackdir for next turn or INVALID_TRACK if the path could not be found
 
 */
 
Track NPFShipChooseTrack(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 NPF.
 
 * @param v the ship leaving the depot
 
 * @return true if reversing is better
 
 */
 
bool NPFShipCheckReverse(const Ship *v);
 

	
 
/**
 
 * Used when user sends train to the nearest depot or if train needs servicing using NPF
 
 * @param v            train that needs to go to some depot
 
 * @param max_penalty  max max_penalty (in pathfinder penalty) from the current train position
 
 *                     (used also as optimization - the pathfinder can stop path finding if max_penalty
 
 *                     was reached and no depot was seen)
 
 * @return             the data about the depot