Exemple #1
0
void Bombing::AddFleets()
{
	// Find all fleets orbiting the planet that want to Bomb it
	for (unsigned int j = 0; j < TheGame->NumberPlayers(); ++j )
	{
		Player* player = TheGame->NCGetPlayer(j);
			
		if(player->AddBombingFleets(this,mTargetPlanet->GetOwner(),BT_NORMAL))
			mNormalBombingPlayers.push_back(player);
			
		if(player->AddBombingFleets(this,mTargetPlanet->GetOwner(),BT_SMART))
			mSmartBombingPlayers.push_back(player);
		
		if(player->AddBombingFleets(this,mTargetPlanet->GetOwner(),BT_TERRA))
			mTerraBombingPlayers.push_back(player);
	}
}