public TargetChartDataDto(ParsedEvtcLog log, PhaseData phase, AbstractSingleActor target) : base(log, phase, target, false)
 {
     Total                 = target.Get1SDamageList(log, phase.Start, phase.End, null, ParserHelper.DamageType.All);
     TotalPower            = target.Get1SDamageList(log, phase.Start, phase.End, null, ParserHelper.DamageType.Power);
     TotalCondition        = target.Get1SDamageList(log, phase.Start, phase.End, null, ParserHelper.DamageType.Condition);
     BreakbarPercentStates = ChartDataDto.BuildBreakbarPercentStates(log, target, phase);
 }
Example #2
0
 public PhaseChartDataDto(ParsedEvtcLog log, PhaseData phase, bool addCRData)
 {
     Players = PlayerChartDataDto.BuildPlayersGraphData(log, phase);
     foreach (AbstractSingleActor target in phase.Targets)
     {
         Targets.Add(new TargetChartDataDto(log, phase, target));
     }
     if (addCRData)
     {
         TargetsHealthStatesForCR          = new List <List <object[]> >();
         TargetsBreakbarPercentStatesForCR = new List <List <object[]> >();
         TargetsBarrierStatesForCR         = new List <List <object[]> >();
         foreach (AbstractSingleActor target in log.FightData.Logic.Targets)
         {
             TargetsHealthStatesForCR.Add(ChartDataDto.BuildHealthStates(log, target, phase, false));
             TargetsBreakbarPercentStatesForCR.Add(ChartDataDto.BuildBreakbarPercentStates(log, target, phase));
             TargetsBarrierStatesForCR.Add(ChartDataDto.BuildBarrierStates(log, target, phase));
         }
     }
 }