示例#1
0
 public PlayerInfo(Player user, DamageTracker tracker)
 {
     _tracker = tracker;
     Player = user;
     Received = new SkillStats();
     Dealt = new SkillStats();
 }
示例#2
0
 public Skill(long amount, Database.Type type, Entity target, Player targetPlayer, Entity source, Player sourcePlayer, int skillId, bool hotdot,
     bool critic, long time, NpcInfo pet, HitDirection direction)
 {
     Amount = amount;
     Type = type;
     EntityTarget = target;
     EntitySource = source;
     PlayerTarget = targetPlayer;
     PlayerSource = sourcePlayer;
     SkillId = skillId;
     Critic = critic;
     HotDot = hotdot;
     Time = time;
     Pet = pet;
     Direction = direction;
     Source = source;
     Target = target;
     if(PlayerSource != null)
     {
         Source = PlayerSource.User;
     }
     if(PlayerTarget != null)
     {
         Target = PlayerTarget.User;
     }
 }
示例#3
0
 public PlayerInfo(Player user)
 {
     FirstHit = 0;
     LastHit = 0;
     Player = user;
     Received = new SkillStats();
     Dealt = new SkillStats(this);
 }
 public PlayerDamageDealt(long amount, long beginTime, long endTime, long critic, long hit, Player source)
 {
     Amount = amount;
     BeginTime = beginTime;
     EndTime = endTime;
     Critic = critic;
     Hit = hit;
     Source = source;
 }
示例#5
0
        public PlayerInfo(Player user, DamageTracker tracker)
        {
            Tracker = tracker;
            Player = user;
            SkillLog = new ThreadSafeObservableCollection<SkillResult>();

            Received = new SkillStats(tracker, SkillLog);
            Dealt = new SkillStats(tracker, SkillLog);
        }
示例#6
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);
        }
示例#7
0
        public PlayerInfo(Player user, DamageTracker tracker)
        {
            Tracker = tracker;
            Player = user;
            Received = new SkillStats();
            Dealt = new SkillStats();
            SkillLog = new ThreadSafeObservableCollection<SkillResult>();

            Dealt.PropertyChanged += DealtOnPropertyChanged;
        }
示例#8
0
 public PlayerHealDealt(long critic, long hit, Player source)
 {
     Critic = critic;
     Hit = hit;
     Source = source;
 }
示例#9
0
 private PlayerInfo GetOrCreate(Player player)
 {
     PlayerInfo playerStats = StatsByUser.FirstOrDefault(pi => pi.Player.Equals(player));
     if (playerStats == null)
     {
         playerStats = new PlayerInfo(player, this);
         StatsByUser.Add(playerStats);
     }
     return playerStats;
 }
示例#10
0
 public PlayerInfo(Player user)
 {
     Player = user;
     Received = new SkillStats();
     Dealt = new SkillStats();
 }