(svn r24246) -Add [FS#5052-ish]: [NewGRF] Variable with the current max speed for vehicles.

This commit is contained in:
michi_cc
2012-05-14 19:56:49 +00:00
parent 833f9ed8c3
commit d561bfe4db
5 changed files with 14 additions and 0 deletions

View File

@@ -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