src/ai/api/ai_vehicle.hpp
branchnoai
changeset 10187 d5a6eba5af45
parent 10096 780921b39016
child 10189 b18d1d5b047d
--- 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).