summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_grouplist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/api/ai_grouplist.cpp')
-rw-r--r--src/ai/api/ai_grouplist.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ai/api/ai_grouplist.cpp b/src/ai/api/ai_grouplist.cpp
new file mode 100644
index 000000000..be57b3750
--- /dev/null
+++ b/src/ai/api/ai_grouplist.cpp
@@ -0,0 +1,16 @@
+/* $Id$ */
+
+/** @file ai_grouplist.cpp Implementation of AIGroupList and friends. */
+
+#include "ai_grouplist.hpp"
+#include "../../openttd.h"
+#include "../../company_func.h"
+#include "../../group.h"
+
+AIGroupList::AIGroupList()
+{
+ Group *g;
+ FOR_ALL_GROUPS(g) {
+ if (g->owner == _current_company) this->AddItem(g->index);
+ }
+}