protected override int CompareResult(ListLine other)
        {
            var br = (ListLineBoulder)other;
            int n  = br.Tops.CompareTo(this.Tops);

            if (n != 0)
            {
                return(n);
            }

            n = br.Bonuses.CompareTo(this.Bonuses);
            if (n != 0)
            {
                return(n);
            }

            n = this.TopAttempts.CompareTo(br.TopAttempts);
            if (n != 0)
            {
                return(n);
            }

            return(this.BonusAttempts.CompareTo(br.BonusAttempts));
        }
Example #2
0
 protected abstract int CompareResult(ListLine other);
Example #3
0
 protected override int CompareResult(ListLine other)
 {
     return(this.CompareResult((ListLineSpeed)other));
 }
Example #4
0
 protected override int CompareResult(ListLine other)
 {
     return(other.Result.Value.CompareTo(this.Result.Value));
 }