Ejemplo n.º 1
0
int
CombatGroup::CalcValue()
{
	int val = 0;

	ListIter<CombatUnit> unit = units;
	while (++unit)
	val += unit->GetValue();

	ListIter<CombatGroup> comp = components;
	while (++comp)
	val += comp->CalcValue();

	value = val;
	return value;
}