summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-05-14 19:56:49 +0000
committermichi_cc <michi_cc@openttd.org>2012-05-14 19:56:49 +0000
commitce5c936b07517955ffa29a134907346b6cd4c148 (patch)
tree204c818783cda0baf6104f72e7897f5c311f0e3b /src/vehicle_base.h
parent58d474797e90fbc551a455000cfbda16f15ad4a5 (diff)
downloadopenttd-ce5c936b07517955ffa29a134907346b6cd4c148.tar.xz
(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max speed for vehicles.
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 a605e64ec..7b2f371fa 100644
--- a/src/vehicle_base.h
+++ b/src/vehicle_base.h
@@ -399,6 +399,12 @@ public:
virtual int GetDisplayMaxSpeed() const { return 0; }
/**
+ * Calculates the maximum speed of the vehicle under its current conditions.
+ * @return Current maximum speed in native units.
+ */
+ virtual int GetCurrentMaxSpeed() const { return 0; }
+
+ /**
* Gets the running cost of a vehicle
* @return the vehicle's running cost
*/