Beispiel #1
0
 public AttackResult(Weapon weapon, IAttackble attacker,
                     IAttackble target)
 {
     Weapon   = weapon;
     Attacker = attacker;
     Target   = target;
 }
Beispiel #2
0
 public AttackResult Attack(IAttackble target)
 {
     if (IsCloseRange(target))
     {
         return(new AttackResult(new Sword(),
                                 this, target));
     }
     else
     {
         return(now AttackResult(new Shuriken(),
                                 this, target));
     }
 }
Beispiel #3
0
 public AttackResult Attack(IAttackble target)
 {
     throw new NotImplementedException();
 }