示例#1
0
        public override void attack(IDefender DefenderVisitor)
        {
            int damage;

            damage = DefenderVisitor.Defend(this);
            this.GetDamage(damage);
        }
示例#2
0
        public override void attack(IDefender DefenderVisitor)
        {
            int damage;

            damage = DefenderVisitor.Defend(this);

            GetDamage(Math.Max(1, (damage - Armor)));
        }
示例#3
0
        public override void attack(IDefender DefenderVisitor)
        {
            int damage;

            damage = DefenderVisitor.Defend(this);
            if (damage != 0)
            {
                Speed++;
            }
            GetDamage(damage);
        }