static void Main(string[] args) { Pokemon pokemon1 = new Pokemon("Charmander", "lanza llamas"); Pokemon pokemon2 = new Pokemon("Magikarp"); Pokeball bola = new Pokeball("Masterball", pokemon2); Pokeball bolavacia = new Pokeball(); Entrenador trainer = new Entrenador("Vadik", bola); Console.WriteLine(pokemon1.nombre + " salvaje aparece!"); trainer.SacaPokemon(); pokemon1.atacar(); pokemon2.atacar(); bolavacia.SacarPokemon();; bolavacia.Atrapar(pokemon1); }
public void SacaPokemon() { ball.SacarPokemon(); Console.WriteLine(nombre + " sacó a " + ball.pokemon.nombre); }