branch | noai |
changeset 11079 | 925e3823a101 |
11078:81b3bb4b6c53 | 11079:925e3823a101 |
---|---|
1 /* $Id$ */ |
|
2 |
|
3 /** @file ai_grouplist.cpp Implementation of AIGroupList and friends. */ |
|
4 |
|
5 #include "ai_grouplist.hpp" |
|
6 #include "../../openttd.h" |
|
7 #include "../../player_func.h" |
|
8 #include "../../group.h" |
|
9 |
|
10 AIGroupList::AIGroupList() |
|
11 { |
|
12 Group *g; |
|
13 FOR_ALL_GROUPS(g) { |
|
14 if (g->owner == _current_player) this->AddItem(g->index); |
|
15 } |
|
16 } |