public void Launch() { foreach (Missile missile in Missiles) { BattleShip targetShip = TheSea.GetShipOn(missile.GetTarget()); bool hasTarget = targetShip != null; if (hasTarget) { HitShip(targetShip, missile); } } }