public Pokemon(string name, string description, int hitPoints, int speed, int level, PokemonTypesEnum pokemonType) { Name = name; Description = description; HitPoints = hitPoints; Speed = speed; Level = level; PokemonType = pokemonType; }
static void Main(string[] args) { string name, description = ""; int hp, speed, level = 0; bool exitMenu = false; PokemonTypesEnum type = 0; Pokemon pokemon; //loop through the pokemon input until user wants to exit while (!exitMenu) { Console.WriteLine("Enter the Pokemon's name: "); name = Console.ReadLine(); Console.WriteLine("\nEnter the Pokemon's description: "); description = Console.ReadLine(); type = (PokemonTypesEnum)GetPokemonTypeInput(); hp = GetNumberInput("\nEnter the Pokemon's hp: "); speed = GetNumberInput("\nEnter the Pokemon's speed: "); level = GetNumberInput("\nEnter the Pokemon's level: "); pokemon = new Pokemon(name, description, hp, speed, level, type); Console.WriteLine("\nPOKEMON DATA: " + "\n---------------------"); Console.WriteLine(pokemon.ToString()); Console.WriteLine("\n---------------------"); Console.WriteLine("\nCommitting the pokemon to the database..."); CommitPokemonToDatabase(pokemon); Console.ReadLine(); Console.Clear(); exitMenu = ShouldExitMenu(); } }
{//TODO: create extra fields for "other moves" public OtherMove(string name, string description, PokemonTypesEnum moveType) : base(name, description, moveType) { //TODO: implement other factors for "other moves" }
public AttackMove(string name, string description, PokemonTypesEnum moveType, int power, int accuracy) : base(name, description, moveType) { Power = power; Accuracy = accuracy; }
public PokemonMove(string name, string description, PokemonTypesEnum moveType) { Name = name; Description = description; MoveType = moveType; }