summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-11 08:14:43 +0000
committerrubidium <rubidium@openttd.org>2008-04-11 08:14:43 +0000
commitaa8a5b2c39331fbcbcd6ef2291de8466ac9cdedd (patch)
tree7362e29c0c5e19a26316e830647db11101489af2 /src/vehicle_base.h
parent23465fa7c49e273352f1e283294a25466585ac4f (diff)
downloadopenttd-aa8a5b2c39331fbcbcd6ef2291de8466ac9cdedd.tar.xz
(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h10
1 files changed, 10 insertions, 0 deletions
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; }
};
/**