summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehiclelist.hpp
diff options
context:
space:
mode:
authorYexo <yexo@openttd.org>2009-02-05 01:12:49 +0000
committerYexo <yexo@openttd.org>2009-02-05 01:12:49 +0000
commit62a11eb5a93a12994bdf84475930d0d4b7fb4315 (patch)
tree6b29d7d897ad9b7e9938b372fd066771967fc2db /src/ai/api/ai_vehiclelist.hpp
parent364e2a110dba0c792864e55d55804681c8eb9bca (diff)
downloadopenttd-62a11eb5a93a12994bdf84475930d0d4b7fb4315.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.hpp14
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 */