コード例 #1
0
        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));
        }
コード例 #2
0
 protected abstract int CompareResult(ListLine other);
コード例 #3
0
 protected override int CompareResult(ListLine other)
 {
     return(this.CompareResult((ListLineSpeed)other));
 }
コード例 #4
0
 protected override int CompareResult(ListLine other)
 {
     return(other.Result.Value.CompareTo(this.Result.Value));
 }