예제 #1
0
        public static void IlexOne()
        {
            Console.Clear();
            Console.WriteLine($"Prof. Ilex: Hey, {main.TrainerName}! I need your help with an experiment, follow me back to the lab.");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("\n");
            Console.WriteLine($"Prof Ilex: As you know, we study pokemon here, and seeing as you're coming of age in this world" +
                              $" I spoke with your mother and have decided to give you your own TextMon as well as the TextDex so you can help" +
                              $" me out with researching every kind of TextMon there is!");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("\n");
            Console.WriteLine($"Go ahead! Pick one {main.TrainerName}!");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("You see the Turtle TextMon Squirtle, the Fiery TextMon Charmander and the Leafy TextMon Bulbasaur");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("Which one will you pick?");
            while (true)
            {
                string choice = Console.ReadLine();
                switch (choice.ToLower())
                {
                case ("squirtle"):
                    Textmon Squirtle = new Textmon("Squirtle", 5);
                    main.team.Add(Squirtle);
                    break;

                case ("charmander"):
                    Textmon Charmander = new Textmon("Charmander", 5);
                    main.team.Add(Charmander);
                    break;

                case ("bulbasaur"):
                    Textmon Bulbasaur = new Textmon("Bulbasaur", 5);
                    main.team.Add(Bulbasaur);
                    break;

                default:
                    Console.WriteLine("Try again!");
                    break;
                }
                break;
            }
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine($"\nCongrats {main.TrainerName}! You got a {main.team[0].name}!");
        }
예제 #2
0
        public Battles(Textmon friend, string area)
        {
            switch (area)
            {
            case ("route1"):
                Opponent = new Textmon(route1[rand.Next(0, 2)], rand.Next(2, 4));
                break;

            case ("Viridian City"):
                Opponent = new Textmon(viridianC[rand.Next(0, 2)], rand.Next(2, 5));
                break;

            case ("Viridian Forest"):
                Opponent = new Textmon(viridianF[rand.Next(0, 2)], rand.Next(3, 7));
                break;

            case ("Pewter City"):
                Opponent = new Textmon("Onix", 13);
                break;
            }
            Console.WriteLine($"Let the battle begin between {friend.name} and {Opponent}!");
        }