コード例 #1
0
        private void Intro()
        {
            ScreeensController.Clear();
            ScreeensController.Write("You wake up in your house.");
            int input = intro.Run();

            if (input == 1)
            {
                Bathroom();
            }
            else
            {
                Kitchen();
            }
        }
コード例 #2
0
        private void Bathroom()
        {
            ScreeensController.Clear();
            ScreeensController.Write("You clean your teeth and go to the shower, but in doing so you are not running late for work!");
            int input = travel.Run();

            if (input == 1)
            {
                Walk();
            }
            else
            {
                Cycle();
            }
        }
コード例 #3
0
        private void EnterName()
        {
            ScreeensController.Clear();
            var charName = enterName.Run();
            int input    = confirmName.Run();

            if (input == 1)
            {
                GameController.character.Name = charName;
                EnterGender();
            }
            else
            {
                EnterName();
            }
        }
コード例 #4
0
        private void EnterGender()
        {
            ScreeensController.Clear();
            var charGender = enterGender.Run();
            int input      = confirmGender.Run();

            if (input == 1)
            {
                GameController.character.Gender = charGender;
                ScreeensController.Clear();
                ScreeensController.Write("Saved");
                ScreeensController.Write($"Name: { GameController.character.Name }");
                ScreeensController.Write($"Gender: {GameController.character.Gender }");
                GameController.CreateSaveFile();
                Console.Read();
            }
            else
            {
                EnterGender();
            }
        }
コード例 #5
0
        private void Kitchen()
        {
            ScreeensController.Clear();
            ScreeensController.Write("You make your way down to the kitchen to make some food.");
            int input = breakfast.Run();

            if (input == 1)
            {
                ScreeensController.Write("You make a healthy breakfast and find yourself with plenty of food.");
            }
            else
            {
                ScreeensController.Write("You have a massive greasy breakfast that you spend too much time preparing.  You are now late for work!");
            }
            input = travel.Run();
            if (input == 1)
            {
                Walk();
            }
            else
            {
                Cycle();
            }
        }
コード例 #6
0
 public MainMenu()
 {
     ScreeensController.Clear();
     AddDecisions();
     Run();
 }
コード例 #7
0
 public NewGame()
 {
     ScreeensController.Clear();
 }
コード例 #8
0
 private void Cycle()
 {
     ScreeensController.Clear();
     ScreeensController.Write("You travel to work by bike.");
     Console.ReadLine();
 }
コード例 #9
0
 private void Walk()
 {
     ScreeensController.Clear();
     ScreeensController.Write("You travel to work by foot.");
     Console.ReadLine();
 }