summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
diff options
context:
space:
mode:
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
*/