Example #1
0
        public static double GetThinnestArmor <T>(T armoredObject, bool spaced)
            where T : TankObject, IArmoredObject, IInternalArmoredObject
        {
            var values = IArmoredObjectImpl.GetArmorValues(armoredObject, spaced);

            if (values.Length == 0)
            {
                return(double.MaxValue);
            }
            else
            {
                return(values.Min());
            }
        }
Example #2
0
 public double[] GetArmorValues(bool spaced)
 {
     return(IArmoredObjectImpl.GetArmorValues(this, spaced));
 }