Exemplo n.º 1
0
 public void Hit(IWarrior target)
 {
     if (target.Weapon == this)
     {
         throw new SuicidalException();
     }
     target.Defend(Damage);
 }
Exemplo n.º 2
0
 public void Hit(IWarrior target)
 {
     target.Defend(Damage);
 }