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 | 8f51ee50c1d810a7472ed8a0194f2a6c36b36b99 (patch) | |
tree | 6b29d7d897ad9b7e9938b372fd066771967fc2db /src/ai/api/ai_vehiclelist.hpp | |
parent | 85594561e0cff8553f14b14d7cc37556b0243a92 (diff) | |
download | openttd-8f51ee50c1d810a7472ed8a0194f2a6c36b36b99.tar.xz |
(svn r15345) -Add [NoAI]: Add AIVehicle::HasSharedOrders() and AIVehicleList_SharedOrders.
Diffstat (limited to 'src/ai/api/ai_vehiclelist.hpp')
-rw-r--r-- | src/ai/api/ai_vehiclelist.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ai/api/ai_vehiclelist.hpp b/src/ai/api/ai_vehiclelist.hpp index 0e91d75bc..a18d938b1 100644 --- a/src/ai/api/ai_vehiclelist.hpp +++ b/src/ai/api/ai_vehiclelist.hpp @@ -31,4 +31,18 @@ public: AIVehicleList_Station(StationID station_id); }; +/** + * Creates a list of vehicles that share orders. + * @ingroup AIList + */ +class AIVehicleList_SharedOrders : public AIAbstractList { +public: + static const char *GetClassName() { return "AIVehicleList_SharedOrders"; } + + /** + * @param station_id The vehicle that the rest shared orders with. + */ + AIVehicleList_SharedOrders(VehicleID vehicle_id); +}; + #endif /* AI_VEHICLELIST_HPP */ |