Ejemplo n.º 1
0
void Commander::unitCreated(BaseAgent* agent)
{
	//Sort the squad list
	sortSquadList();

	for (int i = 0; i < (int)squads.size(); i++)
	{
		if (squads.at(i)->addMember(agent))
		{
			break;
		}
	}
}
Ejemplo n.º 2
0
void Commander::unitCreated(BaseAgent* agent)
{
	//Sort the squad list
	sortSquadList();

	for (Squad* s : squads)
	{
		if (s->addMember(agent))
		{
			break;
		}
	}
}