private void SeedPokemonTeam() { Pokemon pika = new Pokemon("Pikachu", "Pikachu", 1, PokemonType.Electric, PokemonType.None, "Sand Attack", "Growl", "Quick Attack", "Tackle"); _Repo.AddPokemonToTeam(pika); }
private void SeedPokemonTeam() { Pokemon pika = new Pokemon("Pikachu", "Pikachu", 1, PokemonType.Electric, PokemonType.None, "Sand Attack", "Growl", "Quick Attack", "Tackle"); Pokemon bulba = new Pokemon("Bulbasaur", "Bulba", 10, PokemonType.Grass, PokemonType.None, "attack1", "attack2", "attack3", "attack4"); Pokemon poppy = new Pokemon("Meowth", "Poppy", 57, PokemonType.Normal, PokemonType.None, "cut", "stab", "Unwanted advance", "deny election"); Pokemon george = new Pokemon("Mew", "George", 99, PokemonType.Psychic, PokemonType.None, "psychic", "Hyper beam", "confusion", "self-destruct"); Pokemon squirtle = new Pokemon("Squirtle", "Squirts", 34, PokemonType.Water, PokemonType.None, "squirt", "erupt", "flood", "surf"); Pokemon diglett = new Pokemon("Diglet", "Diggy", 65, PokemonType.Ground, PokemonType.None, "dig", "rockthrow", "harden", "earthquake"); _repo.AddPokemonToTeam(pika); _repo.AddPokemonToTeam(bulba); _repo.AddPokemonToTeam(poppy); _repo.AddPokemonToTeam(george); _repo.AddPokemonToTeam(squirtle); _repo.AddPokemonToTeam(diglett); }
private void AddPokemonToTeam() { List<Pokemon> pokemonTeam = _repo.GetPokemonTeam(); if (pokemonTeam.Count >= 6) { Console.WriteLine("You already have 6 Pokemon on your team! You cant hold more than that! Please Remove a Pokemon first!"); Console.ReadKey(); } else { Console.Clear(); Console.WriteLine("Lets add a new member to our team!" + "\n\nPokemon Species Name: "); string species = Console.ReadLine(); Console.WriteLine("Pokemon Nick Name: "); string name = Console.ReadLine(); Console.WriteLine("Pokemon Level: "); string pokeLevel = if (!pokeLevel.All(char.IsDigit)) { Console.WriteLine("Pokemon Level must be whole numbers only!"); Console.ReadKey(); } else { int level = int.Parse(pokeLevel); Console.WriteLine("Pokemon Type: " + "\n1. Normal" + "\n2. Grass" + "\n3. Fire" + "\n4. Water" + "\n5. Electric" + "\n6. Ice" + "\n7. Bug" + "\n8. Ground" + "\n9. Rock" + "\n10. Fighting" + "\n11. Psychic" + "\n12. Ghost" + "\n13. Dark" + "\n14. Fairy" + "\n15. Dragon"); PokemonType typeOne = (PokemonType)int.Parse(Console.ReadLine()); Console.WriteLine("Pokemon Secondary Type: " + "\n1. Normal" + "\n2. Grass" + "\n3. Fire" + "\n4. Water" + "\n5. Electric" + "\n6. Ice" + "\n7. Bug" + "\n8. Ground" + "\n9. Rock" + "\n10. Fighting" + "\n11. Psychic" + "\n12. Ghost" + "\n13. Dark" + "\n14. Fairy" + "\n15. Dragon" + "\n16. None"); PokemonType typeTwo = (PokemonType)int.Parse(Console.ReadLine()); Console.WriteLine("Name of First Move: "); string moveOne = Console.ReadLine(); Console.WriteLine("Name of Second Move: "); string moveTwo = Console.ReadLine(); Console.WriteLine("Name of Third Move: "); string moveThree = Console.ReadLine(); Console.WriteLine("Name of Fourth Move: "); string moveFour = Console.ReadLine(); Pokemon newPokemon = new Pokemon(species, name, level, typeOne, typeTwo, moveOne, moveThree, moveFour); _Repo.AddPokemonToTeam(newPokemon); Console.WriteLine("Pokemon added!"); Console.ReadKey(); } } Console.Clear(); }