Exemplo n.º 1
0
        public override void Defend(AttackObject attacker)
        {
            var defendValue = 0;
            var shield      = RightHand as IShield;

            if (shield != null)
            {
                defendValue += shield.DefendValue;
            }
            shield = LeftHand as IShield;
            if (shield != null)
            {
                defendValue += shield.DefendValue;
            }
            Defend(defendValue, attacker.Attack());
        }
Exemplo n.º 2
0
 public override void Defend(AttackObject attacker)
 {
     Defend(0, attacker.Attack());
 }
Exemplo n.º 3
0
 public abstract void Defend(AttackObject attacker);