Ejemplo n.º 1
0
CombatGroup*
CombatGroup::FindGroup(int t, int n)
{
	CombatGroup* result = 0;

	if (type == t && (n < 0 || id == n))
	result = this;

	ListIter<CombatGroup> group = components;
	while (!result && ++group) {
		result = group->FindGroup(t, n);
	}

	return result;
}