Example #1
0
 public void Fight(ICombatant fighterOne, ICombatant fighterTwo, out ICombatant winner)
 {
     fighterOne.TakeDamage(fighterTwo.GetDamage());
     fighterTwo.TakeDamage(fighterOne.GetDamage());
     winner = fighterOne.Health > fighterTwo.Health ? fighterOne : fighterTwo;
 }