Beispiel #1
0
 public TargetTotalDamage GetBossTarget()
 {
     if (BossTarget == null)
     {
         BossTarget = GetTarget(BossName);
     }
     return(BossTarget);
 }
Beispiel #2
0
        public void AddDamage(PlayerDamageEventArgs e)
        {
            TargetTotalDamage target = GetTarget(e.Target);

            if (target == null)
            {
                target = new TargetTotalDamage(e.Target);
                TargetList.Add(target);
            }
            target.AddDamage(e);
        }
Beispiel #3
0
 int SortList(TargetTotalDamage u1, TargetTotalDamage u2)
 {
     if (u1.TotalDamage < u2.TotalDamage)
     {
         return(1);
     }
     if (u1.TotalDamage > u2.TotalDamage)
     {
         return(-1);
     }
     return(0);
 }