示例#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());
            }
        }
示例#2
0
 public double[] GetArmorValues(bool spaced)
 {
     return(IArmoredObjectImpl.GetArmorValues(this, spaced));
 }