private void Fire10Ship(IFleet enemyFleet) { foreach (IStarShip ship in WorkingStarShips.Where(x => !x.HasFiredThisLoop).Take(10)) { ship.Attack(enemyFleet, myBattleStratageyType); ship.HasFiredThisLoop = true; } }
private bool LessThan10LeftToFire() { if (WorkingStarShips.Where(x => !x.HasFiredThisLoop).Count() < 10) { return(true); } return(false); }