Exemple #1
0
        private List <MergeGroupFight> CreateNewFights()
        {
            List <MergeGroupFight> ret = new List <MergeGroupFight>();

            for (int i = 0; i < _groups.Count; i += 2)
            {
                MergeSortGroup  leftGroup  = _groups[i];
                MergeSortGroup  rightGroup = _groups[i + 1];
                MergeGroupFight fight      = new MergeGroupFight(leftGroup, rightGroup, this);
                ret.Add(fight);
            }
            //TODO: Handle odd numbers
            return(ret);
        }
Exemple #2
0
 public ItemFight(SignitureItem left, SignitureItem right, MergeGroupFight source)
 {
     Left    = left;
     Right   = right;
     _source = source;
 }