示例#1
0
 public TargetTotalDamage GetBossTarget()
 {
     if (BossTarget == null)
     {
         BossTarget = GetTarget(BossName);
     }
     return(BossTarget);
 }
示例#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);
        }
示例#3
0
 int SortList(TargetTotalDamage u1, TargetTotalDamage u2)
 {
     if (u1.TotalDamage < u2.TotalDamage)
     {
         return(1);
     }
     if (u1.TotalDamage > u2.TotalDamage)
     {
         return(-1);
     }
     return(0);
 }