src/vehicle_base.h
changeset 8890 8a0fa7ff70a0
parent 8862 f72f256c0259
child 8891 1058c3b69b7f
--- a/src/vehicle_base.h	Thu Apr 10 22:18:33 2008 +0000
+++ b/src/vehicle_base.h	Fri Apr 11 08:14:43 2008 +0000
@@ -512,6 +512,16 @@
 	 * @return the location (tile) to aim for.
 	 */
 	virtual TileIndex GetOrderStationLocation(StationID station) { return INVALID_TILE; }
+
+	/**
+	 * Find the closest depot for this vehicle and tell us the location,
+	 * DestinationID and whether we should reverse.
+	 * @param location    where do we go to?
+	 * @param destination what hangar do we go to?
+	 * @param reverse     should the vehicle be reversed?
+	 * @return true if a depot could be found.
+	 */
+	virtual bool FindClosestDepot(TileIndex *location, DestinationID *destination, bool *reverse) { return false; }
 };
 
 /**