diff -r 54df587fef5d -r d5a6eba5af45 src/ai/api/ai_vehicle.hpp --- a/src/ai/api/ai_vehicle.hpp Mon Apr 14 21:21:10 2008 +0000 +++ b/src/ai/api/ai_vehicle.hpp Tue Apr 15 14:49:20 2008 +0000 @@ -151,6 +151,15 @@ static int32 GetAgeLeft(VehicleID vehicle_id); /** + * Get the current speed of a vehicle. + * @param vehicle_id The vehicle to get the age of. + * @pre IsValidVehicle(vehicle_id). + * @return The current speed of the vehicle. + * @note Speed is in km/h. + */ + static int32 GetCurrentSpeed(VehicleID vehicle_id); + + /** * Get the running cost of this vehicle. * @param vehicle_id The vehicle to get the age of. * @pre IsValidVehicle(vehicle_id).