Пример #1
0
 public int GetMaxCountSteps()
 {
     return
         (Math.Max(
              Troops.Any() ? Troops.Max(x => x.Remaining) : 0,
              Bombs.Any() ? Bombs.Max(x => x.Remaining) + Constants.BOMB_EXPLODE_DURATION : 0
              ));
 }
Пример #2
0
 public int GetTroopSteps()
 {
     return(Troops.Any() ? Troops.Max(x => x.Remaining) : 0);
 }