Пример #1
0
        public static void ExploreZoo(McClane newHero)
        {
            Console.WriteLine("--------------------------------");
            Console.WriteLine("Great idea, " + newHero.Name + "! What part of the zoo do you want to explore?");
            Console.WriteLine("1. Big Cat Exhibit");
            Console.WriteLine("2. Food Court");
            Console.WriteLine("3. Gift Shop");
            Console.WriteLine("4. Aquarium");
            Console.WriteLine("5. Atrium");
            Console.WriteLine("6. Return To Main Menu");
            Console.WriteLine("--------------------------------");
            string zooExplore = Console.ReadLine();

            if (zooExplore == "1")
            {
                if (newHero.RemainingAnimals.Contains("Leroy The Lion"))
                {
                    Console.WriteLine("--------------------------------");
                    Console.WriteLine("**You and John make your way towards the Big Cat Exhibit. The main entrance glass is shattered and covers the floor.**");
                    Console.WriteLine("MCCLANE: Glad I wore my shoes today.");
                    Console.WriteLine("**You and John navigate through the glass. You notice the interior walls of the exhibit are covered in claw marks.**");
                    Console.WriteLine("MCCLANE: SHIT THOSE ARE SOME BIG KITTENS! I'D BE LION IF I SAID I WASN'T A LITTLE NERVOUS " + newHero.Name + "!");
                    McClane.ExploreBigCat(newHero);
                }
                else
                {
                    Console.WriteLine("MCCLANE: Nothing Left to do there " + newHero.Name + "! Let's look somewhere else.");
                    McClane.ExploreZoo(newHero);
                }
            }
            else if (zooExplore == "2")
            {
                Console.WriteLine("--------------------------------");
                Console.WriteLine("**You run towards the Food Court. As you enter, you see John duck in front of you. Before you can react, Todd the Giant Todd has latched onto your face, spraying you with his toady venom. (-20 Health)**");
                Console.WriteLine("**Todd the Giant Toad has been added to your Backpack.**");
                newHero.Items.Add("Todd The Giant Toad");
                Console.WriteLine("**Todd the Giant Toad has been added to your Found Animals list.**");
                newHero.RemainingAnimals.Remove("Todd The Giant Toad");

                McClane.ExploreFoodCourt(newHero);
            }
            else if (zooExplore == "3")
            {
                // McClane.ExploreGiftShop(newHero);
            }
            else if (zooExplore == "4")
            {
                // McClane.ExploreAquarium(newHero);
            }
            else if (zooExplore == "5")
            {
                // McClane.ExploreAtrium(newHero);
            }
            else if (zooExplore == "6")
            {
                McClane.Navigation(newHero);
            }
            else
            {
                Console.WriteLine("MCCLANE: Quit wasting time " + newHero.Name + "! Enter a valid number!");
                McClane.ExploreZoo(newHero);
            }
        }
Пример #2
0
        public static void ExploreBigCat(McClane newHero)
        {
            Console.WriteLine("MCCLANE: What should we do?");
            Console.WriteLine("--------------------------------");
            Console.WriteLine("1. Use an Item");
            Console.WriteLine("2. Fight the Lion");
            Console.WriteLine("3. Sneak up on the Tiger");
            Console.WriteLine("4. Leave Big Cat Exhibit");
            Console.WriteLine("--------------------------------");
            string input = Console.ReadLine();

            if (input == "1")
            {
                string userItem = Item.UseItem(newHero);
                if (userItem == "Energy Bar")
                {
                    newHero.HealthUp(newHero);
                    Console.WriteLine("--------------------------------");
                    Console.WriteLine("Energy bar restores health by 20 points.");
                    Console.WriteLine("Health: " + newHero.Health);
                    Console.WriteLine("--------------------------------");
                    newHero.Items.Remove("Can of Cat Food");
                    McClane.ExploreBigCat(newHero);
                }
                else if (userItem == "Can of Cat Food")
                {
                    Console.WriteLine("**You open the can of cat food and slide it along the floor. Both Leroy the Lion and Tonya the Tiger pounce towards the can. They knock their heads together, rendering both unconcious and neutralized. John throws one animal over each shoulder and takes them back to their respective cages.**");
                    Console.WriteLine("**Leroy the Lion and Tonya the Tiger have been removed from your Remaining Animals list.**");
                    Console.WriteLine("--------------------------------");
                    newHero.RemainingAnimals.Remove("Leroy The Lion");
                    newHero.RemainingAnimals.Remove("Tonya The Tiger");
                    newHero.Items.Remove("Can of Cat Food");
                    McClane.Navigation(newHero);
                }
                else
                {
                    Console.WriteLine("**Item uneffective in this situation.**");
                    McClane.ExploreBigCat(newHero);
                }
            }
            else if (input == "2")
            {
                Console.WriteLine("**You put up your hands and atttempt to box Leroy the Lion. The lion soundly defeats you in the first round. You escape before he kills you but take a significant beating. (-20 health)**");
                newHero.HealthDown(newHero);
                Console.WriteLine(newHero.Name + "'s Health: " + newHero.Health);
                Console.WriteLine("MCCLANE: You got some balls on you kid, I'll give you that. Maybe let's try another tactic.");
                McClane.ExploreBigCat(newHero);
            }
            else if (input == "3")
            {
                Console.WriteLine("**You grab that tail and hold on for dear life when the tiger takes off running.");
                Console.WriteLine("MCCLANE: (Laughing Histerically) YIPPE KAYAE M**********R!!");
                Console.WriteLine("**You let go and escape with your life but you lose 20 health.");
                newHero.HealthDown(newHero);
                Console.WriteLine(newHero.Name + "'s Health: " + newHero.Health);
                McClane.ExploreBigCat(newHero);
            }
            else if (input == "4")
            {
                McClane.ExploreZoo(newHero);
            }
            else
            {
                Console.WriteLine("MCCLANE: Quit wasting time " + newHero.Name + "! Enter a valid number!");
                McClane.ExploreZoo(newHero);
            }
        }