public void AttackEnemy(IEnemy enemy) { var damageValue = GetDamageValue(); var enemyAttack = enemy.GetAttack(); var attack = GetAttack(); if (attack > enemyAttack) { enemy.ReceiveDamage(damageValue); controller.DisplayText($"You dealt {damageValue} to {enemy.Name}."); } else if (attack < enemyAttack) { ReceiveDamage(2, enemy.Name); } else { controller.DisplayText($"You and {enemy.Name} stare at each other, searching an oportunity to attack."); } enemy.CheckConditions(controller); }