Ejemplo n.º 1
0
        public void DoAttack(FriendlyCharacter target)
        {
            int damage = _attack - target.Defense;

            if (damage < 0)
            {
                damage = 0;
            }
            target.Health = (target.Health - damage);
        }
Ejemplo n.º 2
0
        public string ReportDamage(FriendlyCharacter target)
        {
            int damage = _attack - target.Defense;

            if (damage < 0)
            {
                damage = 0;
            }
            return(damage.ToString());
        }
Ejemplo n.º 3
0
 public void DoAttack(FriendlyCharacter target)
 {
     target.Health = target.Health - 0;
 }