From 62bdc381e7dffac0e4898ba733bbfc434fdd00b4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 11 Apr 2008 08:14:43 +0000 Subject: (svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class. --- src/vehicle_base.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/vehicle_base.h') diff --git a/src/vehicle_base.h b/src/vehicle_base.h index bd57e99c1..ac415fa64 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -512,6 +512,16 @@ public: * @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; } }; /** -- cgit v1.2.3-54-g00ecf