Exemplo n.º 1
0
        public FightStatistics(IFight fight = null)
        {
            _fight = fight;

            Hit  = new HitPointStatistics <Hit>(Lines, x => x.Damage);
            Heal = new HitPointStatistics <Heal>(Lines, x => x.Amount);
            Miss = new CountStatistics <Miss>(Lines);
            Kill = new CountStatistics <Kill>(Lines);

            Duration = new DurationStatistics <ILine>(_fight, Lines);
            PerTime  = new PerTimeStatistics <Hit, ILine>(Hit, Duration);
        }
Exemplo n.º 2
0
 public PerTimeStatistics(HitPointStatistics <T> hitStats, DurationStatistics <U> timeStats)
 {
     _hitStats  = hitStats;
     _timeStats = timeStats;
 }