src/ai/api/ai_vehicle.hpp
branchnoai
changeset 10187 d5a6eba5af45
parent 10096 780921b39016
child 10189 b18d1d5b047d
equal deleted inserted replaced
10181:54df587fef5d 10187:d5a6eba5af45
   147 	 * @pre IsValidVehicle(vehicle_id).
   147 	 * @pre IsValidVehicle(vehicle_id).
   148 	 * @return The age the vehicle has left.
   148 	 * @return The age the vehicle has left.
   149 	 * @note The age is in days.
   149 	 * @note The age is in days.
   150 	 */
   150 	 */
   151 	static int32 GetAgeLeft(VehicleID vehicle_id);
   151 	static int32 GetAgeLeft(VehicleID vehicle_id);
       
   152 
       
   153 	/**
       
   154 	 * Get the current speed of a vehicle.
       
   155 	 * @param vehicle_id The vehicle to get the age of.
       
   156 	 * @pre IsValidVehicle(vehicle_id).
       
   157 	 * @return The current speed of the vehicle.
       
   158 	 * @note Speed is in km/h.
       
   159 	 */
       
   160 	static int32 GetCurrentSpeed(VehicleID vehicle_id);
   152 
   161 
   153 	/**
   162 	/**
   154 	 * Get the running cost of this vehicle.
   163 	 * Get the running cost of this vehicle.
   155 	 * @param vehicle_id The vehicle to get the age of.
   164 	 * @param vehicle_id The vehicle to get the age of.
   156 	 * @pre IsValidVehicle(vehicle_id).
   165 	 * @pre IsValidVehicle(vehicle_id).