Ejemplo n.º 1
0
 private void PlayerTurn(IPokemon attacker, IPokemon target)
 {
     target.CurrentHP = Attack.MakeAttack(attacker, target);
     if (target.CurrentHP <= 0)
     {
         Console.WriteLine($"{attacker.Name} knocked out {target.Name}");
     }
     Console.WriteLine("End of Player Turn");
 }
Ejemplo n.º 2
0
 public void AITurn(IPokemon attacker, IPokemon target)
 {
     target.CurrentHP = Attack.MakeAttack(attacker, target);
     Console.WriteLine("End of AI Turn");
     if (target.CurrentHP <= 0)
     {
         Console.WriteLine($"{attacker.Name} knocked out {target.Name}");
     }
 }