public void PrintAll() { for (int i = 0; i < PivotGroup1.Count; i++) { for (int j = 0; j < PivotGroup2.Count; j++) { PivotFighter f1 = PivotGroup1[i]; PivotFighter f2 = PivotGroup2[j]; Debug.Print(String.Format("{0} vs. {1}, {2}", f1.Name, f2.Name, this.Results[i, j].ToString())); } } }
public void FightAll() { this.Results = new PivotFightResultSet[PivotGroup1.Count, PivotGroup2.Count]; int total = PivotGroup1.Count * PivotGroup2.Count; int processed = 0; for (int i = 0; i < PivotGroup1.Count; i++) { PivotFighter pf1 = PivotGroup1[i]; FighterFight ff1 = new FighterFight(pf1.GetStats(), pf1.FightPlan); for (int j = 0; j < PivotGroup2.Count; j++) { PivotFighter pf2 = PivotGroup2[j]; FighterFight ff2 = new Model.FighterFight(pf2.GetStats(), pf2.FightPlan); this.Results[i, j] = new PivotFightResultSet(FightTracker.PlayMultiple_ResultSet(this.NumberOfSimsEach, ff1, ff2, this.Options)); processed++; Debug.Print(String.Format("Pivot sim: {0} of {1}", processed, total)); } } SetBestWorstInRowColumn(); }