예제 #1
0
        public static void ExploreFoodCourt(McClane newHero)
        {
            Console.WriteLine("MCCLANE: What should we do?");
            Console.WriteLine("--------------------------------");
            Console.WriteLine("1. Use an Item");
            Console.WriteLine("2. Inspect the Panda Express Stall");
            Console.WriteLine("3. Inspect the Sbarro's Stall");
            Console.WriteLine("4. Leave Food Court");
            Console.WriteLine("--------------------------------");
            string input = Console.ReadLine();

            if (input == "1")
            {
                string useItem = Item.UseItem(newHero);

                if (useItem == "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.ExploreFoodCourt(newHero);
                }

                else if (useItem == "Todd The Giant Toad")
                {
                    Console.WriteLine("**You throw Todd The Giant Toad at Henry The Hippo. Being a zoo hippo, Henry gobbles whatever tasty morsel is thrown at him with no regard. Henry promptly passes out from Todd's Toady Venom. John grabs a hefty hippo hoof and hauls Henry hurriedly back to his hippo home.**");
                    Console.WriteLine("Henry The Hippo has been removed from your Remaining Animals List. Todd The Giant Toad has been removed from your backpack.");
                    newHero.Items.Remove("Todd The Giant Toad");
                    newHero.RemainingAnimals.Remove("Henry The Hippo");
                    McClane.ExploreZoo(newHero);
                }
                else
                {
                    Console.WriteLine("**Item uneffective in this situation.**");
                    McClane.ExploreFoodCourt(newHero);
                }
            }
            else if (input == "2")
            {
                Console.WriteLine("**You go rooting around for some tasty grub. You find some Orange Chicken but it doesn't look suitable for human consumption.**");
                Console.WriteLine("**Orange Chicken has been added to your backpack.**");
                newHero.Items.Add("Orange Chicken");
                McClane.ExploreFoodCourt(newHero);
            }
            else if (input == "3")
            {
                Console.WriteLine("**You and John enter the restaurant. There's two slices of delicious pepperoni pizza sitting under the heat lamp. What do you want to do?**");
                Console.WriteLine("1. Kick back with John and eat some Za.");
                Console.WriteLine("2. Return to the Food Court.");
                string pizzaInput = Console.ReadLine();
                if (pizzaInput == "1")
                {
                    Console.WriteLine("Don't trust Sbarro's pizza. You and John get food poisoning. (-20 Health)");
                    newHero.HealthDown(newHero);
                    Console.WriteLine("Health: " + newHero.Health);
                    McClane.ExploreFoodCourt(newHero);
                }
                else if (pizzaInput == "2")
                {
                    McClane.ExploreFoodCourt(newHero);
                }
                else
                {
                    Console.WriteLine("MCCLANE: Quit wasting time " + newHero.Name + "! Enter a valid number!");
                    McClane.ExploreFoodCourt(newHero);
                }
            }
            else if (input == "4")
            {
                McClane.ExploreZoo(newHero);
            }
            else
            {
                Console.WriteLine("MCCLANE: Quit wasting time " + newHero.Name + "! Enter a valid number!");
                McClane.ExploreFoodCourt(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);
            }
        }