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

            return(false);
        }