public static List <List <object> > BuildSupportData(ParsedEvtcLog log, PhaseData phase) { var list = new List <List <object> >(); foreach (AbstractSingleActor actor in log.Friendlies) { FinalToPlayersSupport support = actor.GetToPlayerSupportStats(log, phase.Start, phase.End); list.Add(GetSupportStatData(support)); } return(list); }
public static JsonPlayerSupport BuildJsonPlayerSupport(FinalToPlayersSupport stats) { var jsonPlayerSupport = new JsonPlayerSupport { Resurrects = stats.Resurrects, ResurrectTime = stats.ResurrectTime, CondiCleanse = stats.CondiCleanse, CondiCleanseTime = stats.CondiCleanseTime, CondiCleanseSelf = stats.CondiCleanseSelf, CondiCleanseTimeSelf = stats.CondiCleanseTimeSelf, BoonStrips = stats.BoonStrips, BoonStripsTime = stats.BoonStripsTime }; return(jsonPlayerSupport); }
private static List <object> GetSupportStatData(FinalToPlayersSupport support) { var data = new List <object>() { support.CondiCleanse, support.CondiCleanseTime, support.CondiCleanseSelf, support.CondiCleanseTimeSelf, support.BoonStrips, support.BoonStripsTime, support.Resurrects, support.ResurrectTime }; return(data); }
private void CreateSupTable(int phaseIndex) { PhaseData phase = _phases[phaseIndex]; //generate supstats table WriteLine(new[] { "Sub Group", "Profession", "Name", "Condi Cleanse", "Condi Cleanse time", "Condi Cleanse Self", "Condi Cleanse time self", "Boon Strips", "Boon Strips time", "Resurrects", "Time Resurecting" }); int count = 0; foreach (Player player in _noFakePlayers) { FinalToPlayersSupport support = player.GetToPlayerSupportStats(_log, phase.Start, phase.End); WriteLine(new[] { player.Group.ToString(), player.Spec.ToString(), player.Character, support.CondiCleanse.ToString(), support.CondiCleanseTime.ToString(), support.CondiCleanseSelf.ToString(), support.CondiCleanseTimeSelf.ToString(), support.BoonStrips.ToString(), support.BoonStripsTime.ToString(), support.Resurrects.ToString(), support.ResurrectTime.ToString() }); count++; } while (count < 15)//so each graph has equal spacing { NewLine(); count++; } }