示例#1
0
 internal void Advance()
 {
     if (CurrentFight.Complete)
     {
         MergeSortGroup newGroup = CurrentFight.ToGroup();
         _groups.Add(newGroup);
         AdvanceCurrentFight();
     }
     if (CurrentItemFight != null)
     {
         CurrentItemFight = CurrentFight.GetNextFight();
     }
 }
示例#2
0
 internal void RightWins(ItemFight mergeSortFight)
 {
     _sortedItems.Add(mergeSortFight.Right);
     LeftGroup.ReturnItem(mergeSortFight.Left);
     PotentiallyComplete();
 }