Inheritance: PropertyObservable
Esempio n. 1
0
 public void Add(SkillStats other)
 {
     Damage += other.Damage;
     Heal   += other.Heal;
     Crits  += other.Crits;
     Hits   += other.Hits;
 }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 5
0
 public void Add(SkillStats other)
 {
     Damage += other.Damage;
     Heal += other.Heal;
     Crits += other.Crits;
     Hits += other.Hits;
 }
Esempio n. 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;
        }