summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-28 06:46:33 +0000
committerrubidium <rubidium@openttd.org>2007-08-28 06:46:33 +0000
commit2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1 (patch)
treecc70dd0831f84779834db7751c18a5a7eb87e5b1 /src/vehicle.h
parent41a0bd2b7499934518c5bfe0f3f79b9b0ad6237c (diff)
downloadopenttd-2179faf5c82c2eca3aeeaf7f08fa0f18ad4772c1.tar.xz
(svn r10995) -Codechange: unify the way to get the displayed maxium speed of a vehicle. Patch by nycom.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index f036a2e8d..02ed8e51e 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -421,6 +421,12 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
virtual int GetDisplaySpeed() const { return 0; }
/**
+ * Gets the maximum speed in mph that can be sent into SetDParam for string processing.
+ * @return the vehicle's maximum speed
+ */
+ virtual int GetDisplayMaxSpeed() const { return 0; }
+
+ /**
* Calls the tick handler of the vehicle
*/
virtual void Tick() {};