diff options
author | Yexo <yexo@openttd.org> | 2009-02-05 01:12:49 +0000 |
---|---|---|
committer | Yexo <yexo@openttd.org> | 2009-02-05 01:12:49 +0000 |
commit | 62a11eb5a93a12994bdf84475930d0d4b7fb4315 (patch) | |
tree | 6b29d7d897ad9b7e9938b372fd066771967fc2db /src/ai/api/ai_vehicle.hpp | |
parent | 364e2a110dba0c792864e55d55804681c8eb9bca (diff) | |
download | openttd-62a11eb5a93a12994bdf84475930d0d4b7fb4315.tar.xz |
(svn r15345) -Add [NoAI]: Add AIVehicle::HasSharedOrders() and AIVehicleList_SharedOrders.
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |