public void Attack(IDummy target) { this.weapon.Attack(target); if (target.IsDead()) { this.experience += target.GiveExperience(); } }