예제 #1
0
		private void combatParser_Hit(object sender, HitEventArgs e)
		{
			UpdateEncounter(e.Timestamp);

			Attack attack = new Attack(e);
			currentEncounter.AddAttack(attack);

			Character attacker = FindCharacter(e.Attacker);
			attacker.AddOffensiveHit(attack);

			Character target = FindCharacter(e.Target);
			target.AddDefensiveHit(attack);
		}
		public void AddAttack(Attack e)
		{
			Hits.Add(e);
		}
예제 #3
0
		private void combatParser_Evade(object sender, EvadeEventArgs e)
		{
			UpdateEncounter(e.Timestamp);

			Attack evade = new Attack(e);
			Character attacker = FindCharacter(e.Attacker);
			attacker.AddOffensiveEvade(evade);

			Character target = FindCharacter(e.Evader);
			target.AddDefensiveEvade(evade);
		}