summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_grouplist.cpp
blob: 6ff0c3cf51104f698700c49575a7c9f281040a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* $Id$ */

/** @file ai_grouplist.cpp Implementation of AIGroupList and friends. */

#include "ai_grouplist.hpp"
#include "../../company_func.h"
#include "../../group.h"

AIGroupList::AIGroupList()
{
	Group *g;
	FOR_ALL_GROUPS(g) {
		if (g->owner == _current_company) this->AddItem(g->index);
	}
}