コード例 #1
0
        public static void LoadForest()
        {
            Run._room = 2;

            Console.Clear();

            switch (Run.input)
            {
            case (int)RoomList.Rooms.field:
                Field.LoadField();
                break;

            case (int)RoomList.Rooms.desert:
                Desert.LoadDesert();
                break;

            case (int)RoomList.Rooms.town:
                Town.LoadTown();
                break;

            default:
                Model.InvalidInput.invalidInput();
                break;
            }


            Console.WriteLine("You are in the forest. Conditions are unfavorable.\n" +
                              "You've lost {0} life points.\nPlease choose which way to go!\n1.Desert\n2.Town", Run.pointsLost);

            if (Run._numLife < 2)
            {
                Console.WriteLine("You've found a magical plant that's given to You one extra life.");
                Run._numLife = Run._numLife + 1;
            }
        }
コード例 #2
0
ファイル: Cave.cs プロジェクト: MitchNewmann/Maandag
        public static void loadCave()
        {
            Run._room = 7;

            Console.Clear();

            switch (Run.input)
            {
            case (int)RoomList.Rooms.beach:
                Beach.LoadBeach();
                break;

            case (int)RoomList.Rooms.desert:
                Desert.LoadDesert();
                break;

            default:
                InvalidInput.invalidInput();
                break;
            }
        }
コード例 #3
0
ファイル: Town.cs プロジェクト: MitchNewmann/Maandag
        public static void LoadTown()
        {
            Run._room = 5;

            Console.Clear();

            switch (Run.input)
            {
            case (int)RoomList.Rooms.desert:
                Desert.LoadDesert();
                break;

            case (int)RoomList.Rooms.forest:
                Forest.LoadForest();
                break;

            default:
                InvalidInput.invalidInput();
                break;
            }
        }
コード例 #4
0
ファイル: Beach.cs プロジェクト: MitchNewmann/Maandag
        public static void LoadBeach()
        {
            Run._room = 4;

            Console.Clear();

            Console.WriteLine("You are on the beach, resting. You get 3 extra life points.\n" +
                              "Press 6 to go to the desert\nPress 7 to go to the Cave");

            switch (Run.input)
            {
            case (int)RoomList.Rooms.desert:
                Desert.LoadDesert();
                break;

            case (int)RoomList.Rooms.cave:
                Cave.loadCave();
                break;

            default:
                InvalidInput.invalidInput();
                break;
            }
        }