From 62a11eb5a93a12994bdf84475930d0d4b7fb4315 Mon Sep 17 00:00:00 2001 From: Yexo Date: Thu, 5 Feb 2009 01:12:49 +0000 Subject: (svn r15345) -Add [NoAI]: Add AIVehicle::HasSharedOrders() and AIVehicleList_SharedOrders. --- src/ai/api/ai_vehicle.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ai/api/ai_vehicle.hpp') diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp index 961a451d3..5b9a276c6 100644 --- a/src/ai/api/ai_vehicle.hpp +++ b/src/ai/api/ai_vehicle.hpp @@ -478,6 +478,14 @@ public: * @return True if the vehicle is articulated. */ static bool IsArticulated(VehicleID vehicle_id); + + /** + * Check if the vehicle has shared orders. + * @param vehicle_id The vehicle to check. + * @pre IsValidVehicle(vehicle_id). + * @return True if the vehicle has shared orders. + */ + static bool HasSharedOrders(VehicleID vehicle_id); }; #endif /* AI_VEHICLE_HPP */ -- cgit v1.2.3-54-g00ecf