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); }
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); }