src/ai/api/ai_vehicle.hpp
branchnoai
changeset 11029 776c7cc8bda5
parent 11000 51305152af09
child 11057 188a9ca6d8de
--- a/src/ai/api/ai_vehicle.hpp	Thu Jun 19 16:33:24 2008 +0000
+++ b/src/ai/api/ai_vehicle.hpp	Thu Jun 19 18:09:29 2008 +0000
@@ -8,6 +8,7 @@
 #include "ai_object.hpp"
 #include "ai_error.hpp"
 #include "ai_road.hpp"
+#include "ai_order.hpp"
 
 /**
  * Class that handles all vehicle related functions.
@@ -327,11 +328,11 @@
 	/**
 	 * Skips the current order of the given vehicle.
 	 * @param vehicle_id The vehicle to skip the order for.
-	 * @param order_id The selected order to which we want to skip.
-	 * @pre IsValidVehicleOrder(vehicle_id, order_id).
+	 * @param order_position The selected order to which we want to skip.
+	 * @pre IsValidVehicleOrder(vehicle_id, order_position).
 	 * @return True if and only if the order has been skipped.
 	 */
-	static bool SkipToVehicleOrder(VehicleID vehicle_id, uint32 order_id);
+	static bool SkipToVehicleOrder(VehicleID vehicle_id, AIOrder::OrderPosition order_position);
 
 	/**
 	 * Get the maximum amount of a specific cargo the given vehicle can transport.