Пример #1
0
        public void ChampionEater()
        {
            if (this.currentHungerLevel > 19 || this.CurrentThirstLevel > 22 || this.currentSleepLevel > 22 || this.currentWasteLevel < 2)
            {
                Console.WriteLine("I really have more pressing needs than to eat right now!!!!");
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
            }


            else
            {
                this.currentHungerLevel += 10;
                this.currentThirstLevel += 1;
                this.currentWasteLevel  -= 1;
                this.currentSleepLevel  += 1;
                Console.WriteLine("This is some tasty river salmon");
                Console.WriteLine();
                GrayStorm storm2 = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
                GrayStorm addingAttributes = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
            }
        }
Пример #2
0
        public void ThirstLevel()
        {
            if (this.currentThirstLevel > 19 || this.currentWasteLevel < 3 || this.currentHungerLevel < 3 || this.currentSleepLevel < 3)
            {
                Console.WriteLine("I don't feel like drinking right now!");
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
            }

            else
            {
                this.currentHungerLevel -= 1;
                this.currentWasteLevel  -= 1;
                this.currentSleepLevel  -= 1;
                this.currentThirstLevel += 10;
                Console.WriteLine("That was some tasty H2O!!!");
                Console.WriteLine();
                GrayStorm storm2 = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
                GrayStorm addingAttributes = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
            }
        }
Пример #3
0
        public void BathRoomBreak()
        {
            if (this.currentThirstLevel < 3 || this.currentHungerLevel < 3 || this.currentWasteLevel > 19 || this.currentSleepLevel < 3)
            {
                Console.WriteLine("No need to go outside at this time!!!!");
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
            }

            else
            {
                this.currentHungerLevel -= 1;
                this.currentWasteLevel  += 10;
                this.currentSleepLevel  -= 1;
                this.currentThirstLevel -= 1;
                Console.WriteLine("Talk about relieving!!!");
                Console.WriteLine();
                GrayStorm storm2 = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
                GrayStorm addingAttributes = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
            }
        }
Пример #4
0
        public void SleepyTime()
        {
            if (this.currentThirstLevel < 4 || this.currentSleepLevel > 19 || this.currentHungerLevel < 4 || this.currentWasteLevel < 3)
            {
                Console.WriteLine("Sleep at a time like this?? I think not!!!!");
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
            }

            else
            {
                this.currentHungerLevel -= 1;
                this.currentWasteLevel  -= 1;
                this.currentSleepLevel  += 9;
                this.currentThirstLevel -= 1;
                Console.WriteLine("Your bed sure does look comfortable right now!!!");
                Console.WriteLine();
                GrayStorm storm2 = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
                GrayStorm addingAttributes = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
            }
        }
Пример #5
0
        public void CatChaser()
        {
            if (this.currentHungerLevel < 4 || this.currentThirstLevel < 4 || this.currentWasteLevel < 3 || this.currentSleepLevel < 6)
            {
                Console.WriteLine("Chasing Kats is fun but now is not the time for that!!!");
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
            }

            else
            {
                this.currentHungerLevel -= 1;
                this.currentThirstLevel -= 1;
                this.currentWasteLevel  -= 1;
                this.currentSleepLevel  -= 5;
                Console.WriteLine("This is tiring chasing these kats, but it's so fun!!!!!");
                Console.WriteLine();
                GrayStorm storm2 = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
                Console.WriteLine("Hunger Level: " + currentHungerLevel);
                Console.WriteLine("Thirst Level: " + currentThirstLevel);
                Console.WriteLine("Waste Level: " + currentWasteLevel);
                Console.WriteLine("Sleep Level: " + currentSleepLevel);
                Console.WriteLine();
                GrayStorm addingAttributes = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);
            }
        }
Пример #6
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, my name is GrayStorm and I am a wolf.  I sure hope you will take care of me!!");
            Console.WriteLine();
            GrayStorm storm2 = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);

            Console.WriteLine("Hunger Level: " + storm2.CurrentHungerLevel);
            Console.WriteLine("Thirst Level: " + storm2.CurrentThirstLevel);
            Console.WriteLine("Waste Level: " + storm2.CurrentWasteLevel);
            Console.WriteLine("Sleep Level: " + storm2.CurrentSleepLevel);
            Console.WriteLine();
            GrayStorm addingAttributes = new GrayStorm(currentHungerLevel, currentThirstLevel, currentWasteLevel, currentSleepLevel);

            do
            {
                Console.WriteLine("Select the number of your choice: ");
                Console.WriteLine("1: Feed GrayStorm");
                Console.WriteLine("2: Let GrayStorm play");
                Console.WriteLine("3: Put GrayStorm to bed");
                Console.WriteLine("4: Let GrayStorm out for bathroom break");
                Console.WriteLine("5: Give a drink to GrayStorm");
                Console.WriteLine("6: Quit");
                Console.Write("Enter the number of your choice: ");
                var userChoice = Console.ReadLine();
                Console.WriteLine();
                if (!Int32.TryParse(userChoice, out num))
                {
                    continue;
                }

                if (userChoice == "6")
                {
                    Environment.Exit(0);
                }

                Console.WriteLine("Choice = " + userChoice);

                if (userChoice == "1")
                {
                    storm2.ChampionEater();
                    //Some code that will allow me to enter info on some game
                    // it will then display the menu again after all questions are answered.
                }
                else if (userChoice == "2")
                {
                    storm2.CatChaser();
                }
                else if (userChoice == "3")
                {
                    storm2.SleepyTime();
                }
                else if (userChoice == "4")
                {
                    storm2.BathRoomBreak();
                }
                else if (userChoice == "5")
                {
                    storm2.ThirstLevel();
                }
            } while (true);
        }