예제 #1
0
 public void Hit(IWarrior target)
 {
     if (target.Weapon == this)
     {
         throw new SuicidalException();
     }
     target.Defend(Damage);
 }
예제 #2
0
 public void Hit(IWarrior target)
 {
     target.Defend(Damage);
 }