summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 14:01:50 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 14:01:50 +0000
commit702cc96943a5ffb52fd59718075667044a86775e (patch)
tree664c3d9d8f3c12642153ef9e17de0f5658d02876 /src/vehicle_base.h
parent2c1ffd79f171ab679277821f25a5013d66324984 (diff)
downloadopenttd-702cc96943a5ffb52fd59718075667044a86775e.tar.xz
(svn r20644) -Codechange [FS#4086]: unify the vehicle breakdown code (Hirundo)
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r--src/vehicle_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h
index 5b562db17..e6fe20e17 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -523,6 +523,12 @@ public:
this->service_interval = src->service_interval;
}
+ /**
+ * Handle all of the aspects of a vehicle breakdown.
+ * This includes adding smoke and sounds, and ending the breakdown when appropriate.
+ */
+ void HandleBreakdown();
+
bool NeedsAutorenewing(const Company *c) const;
/**