src/vehicle_base.h
changeset 8862 f72f256c0259
parent 8827 730524764a69
child 8890 8a0fa7ff70a0
--- a/src/vehicle_base.h	Tue Apr 08 13:32:44 2008 +0000
+++ b/src/vehicle_base.h	Tue Apr 08 15:48:32 2008 +0000
@@ -490,6 +490,21 @@
 	bool NeedsAutorenewing(const Player *p) const;
 
 	/**
+	 * Check if the vehicle needs to go to a depot in near future (if a opportunity presents itself) for service or replacement.
+	 *
+	 * @see NeedsAutomaticServicing()
+	 * @return true if the vehicle should go to a depot if a opportunity presents itself.
+	 */
+	bool NeedsServicing() const;
+
+	/**
+	 * Checks if the current order should be interupted for a service-in-depot-order.
+	 * @see NeedsServicing()
+	 * @return true if the current order should be interupted.
+	 */
+	bool NeedsAutomaticServicing() const;
+
+	/**
 	 * Determine the location for the station where the vehicle goes to next.
 	 * Things done for example are allocating slots in a road stop or exact
 	 * location of the platform is determined for ships.