From ce5c936b07517955ffa29a134907346b6cd4c148 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Mon, 14 May 2012 19:56:49 +0000 Subject: (svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max speed for vehicles. --- src/vehicle_base.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vehicle_base.h') 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 @@ -398,6 +398,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 -- cgit v1.2.3-54-g00ecf