src/ai/api/ai_grouplist.cpp
author truebrain
Wed, 25 Jun 2008 20:09:47 +0000
branchnoai
changeset 11079 925e3823a101
permissions -rw-r--r--
(svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
11079
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     1
/* $Id$ */
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     2
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     3
/** @file ai_grouplist.cpp Implementation of AIGroupList and friends. */
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     4
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     5
#include "ai_grouplist.hpp"
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     6
#include "../../openttd.h"
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     7
#include "../../player_func.h"
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     8
#include "../../group.h"
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
     9
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    10
AIGroupList::AIGroupList()
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    11
{
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    12
	Group *g;
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    13
	FOR_ALL_GROUPS(g) {
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    14
		if (g->owner == _current_player) this->AddItem(g->index);
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    15
	}
925e3823a101 (svn r13636) [NoAI] -Add: added AIGroupList, to list your groups (Yexo)
truebrain
parents:
diff changeset
    16
}