Exemple #1
0
        private void ExecuteAttack(IPokemon pokemon, IAttack attack, IPokemon target)
        {
            int damage = attack.CalculateDamage(pokemon, target);

            if (damage != 0)
            {
                target.Hurt(damage);
            }
        }