(svn r10984) -Codechange: unify the way one can get the current speed in the same forwat so we can display it.

This commit is contained in:
rubidium
2007-08-26 20:43:22 +00:00
parent 39f17c9de4
commit 91d18ebd17
10 changed files with 26 additions and 16 deletions

View File

@@ -414,6 +414,12 @@ struct Vehicle : PoolItem<Vehicle, VehicleID, &_Vehicle_pool> {
*/
virtual int GetImage(Direction direction) const { return 0; }
/**
* Gets the speed in mph that can be sent into SetDParam for string processing.
* @return the vehicle's speed
*/
virtual int GetDisplaySpeed() const { return 0; }
/**
* Calls the tick handler of the vehicle
*/