summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehiclelist.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_vehiclelist.hpp')
-rw-r--r--src/ai/api/ai_vehiclelist.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ai/api/ai_vehiclelist.hpp b/src/ai/api/ai_vehiclelist.hpp
index a18d938b1..171de7d2e 100644
--- a/src/ai/api/ai_vehiclelist.hpp
+++ b/src/ai/api/ai_vehiclelist.hpp
@@ -6,6 +6,7 @@
#define AI_VEHICLELIST_HPP
#include "ai_abstractlist.hpp"
+#include "ai_vehicle.hpp"
/**
* Creates a list of vehicles of which you are the owner.
@@ -45,4 +46,32 @@ public:
AIVehicleList_SharedOrders(VehicleID vehicle_id);
};
+/**
+ * Creates a list of vehicles that are in a group.
+ * @ingroup AIList
+ */
+class AIVehicleList_Group : public AIAbstractList {
+public:
+ static const char *GetClassName() { return "AIVehicleList_Group"; }
+
+ /**
+ * @param group_id The ID of the group the vehicles are in.
+ */
+ AIVehicleList_Group(GroupID group_id);
+};
+
+/**
+ * Creates a list of vehicles that are in the default group.
+ * @ingroup AIList
+ */
+class AIVehicleList_DefaultGroup : public AIAbstractList {
+public:
+ static const char *GetClassName() { return "AIVehicleList_DefaultGroup"; }
+
+ /**
+ * @param vehicle_type The VehicleType to get the list of vehicles for.
+ */
+ AIVehicleList_DefaultGroup(AIVehicle::VehicleType vehicle_type);
+};
+
#endif /* AI_VEHICLELIST_HPP */