summaryrefslogtreecommitdiff
path: root/src/script/api/script_grouplist.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/api/script_grouplist.hpp')
-rw-r--r--src/script/api/script_grouplist.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/script/api/script_grouplist.hpp b/src/script/api/script_grouplist.hpp
new file mode 100644
index 000000000..3e02d1ce3
--- /dev/null
+++ b/src/script/api/script_grouplist.hpp
@@ -0,0 +1,27 @@
+/* $Id$ */
+
+/*
+ * This file is part of OpenTTD.
+ * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
+ * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/** @file script_grouplist.hpp List all the groups (you own). */
+
+#ifndef SCRIPT_GROUPLIST_HPP
+#define SCRIPT_GROUPLIST_HPP
+
+#include "script_list.hpp"
+
+/**
+ * Creates a list of groups of which you are the owner.
+ * @note Neither AIGroup::GROUP_ALL nor AIGroup::GROUP_DEFAULT is in this list.
+ * @ingroup AIList
+ */
+class AIGroupList : public AIList {
+public:
+ AIGroupList();
+};
+
+#endif /* SCRIPT_GROUPLIST_HPP */