public TargetTotalDamage GetBossTarget() { if (BossTarget == null) { BossTarget = GetTarget(BossName); } return(BossTarget); }
public void AddDamage(PlayerDamageEventArgs e) { TargetTotalDamage target = GetTarget(e.Target); if (target == null) { target = new TargetTotalDamage(e.Target); TargetList.Add(target); } target.AddDamage(e); }
int SortList(TargetTotalDamage u1, TargetTotalDamage u2) { if (u1.TotalDamage < u2.TotalDamage) { return(1); } if (u1.TotalDamage > u2.TotalDamage) { return(-1); } return(0); }