상속: PropertyObservable
예제 #1
0
 public void Add(SkillStats other)
 {
     Damage += other.Damage;
     Heal   += other.Heal;
     Crits  += other.Crits;
     Hits   += other.Hits;
 }
예제 #2
0
        public PlayerInfo(Player user, DamageTracker tracker)
        {
            Tracker  = tracker;
            Player   = user;
            SkillLog = new SynchronizedObservableCollection <SkillResult>();

            Received = new SkillStats(tracker, SkillLog);
            Dealt    = new SkillStats(tracker, SkillLog);
        }
예제 #3
0
        public PlayerInfo(Player user, DamageTracker tracker)
        {
            Tracker = tracker;
            Player = user;
            SkillLog = CollectionHelper.Instance.CreateSyncedCollection<SkillResult>();

            Received = new SkillStats(tracker, SkillLog);
            Dealt = new SkillStats(tracker, SkillLog);
        }
예제 #4
0
        private SkillStats StatsChange(SkillResult message)
        {
            var result = new SkillStats();

            if (message.Amount == 0)
            {
                return(result);
            }

            result.Damage = message.Damage;
            result.Heal   = message.Heal;

            if (IsFromHealer(message) || (!IsFromHealer(message) && !message.IsHeal))
            {
                result.Hits++;
                if (message.IsCritical)
                {
                    result.Crits++;
                }
            }

            return(result);
        }
예제 #5
0
 public void Add(SkillStats other)
 {
     Damage += other.Damage;
     Heal += other.Heal;
     Crits += other.Crits;
     Hits += other.Hits;
 }
예제 #6
0
        private SkillStats StatsChange(SkillResult message)
        {
            var result = new SkillStats();
            if (message.Amount == 0)
                return result;

            result.Damage = message.Damage;
            result.Heal = message.Heal;

            if (IsFromHealer(message) || (!IsFromHealer(message) && !message.IsHeal))
            {
                result.Hits++;
                if (message.IsCritical)
                    result.Crits++;
            }

            return result;
        }