Esempio n. 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;
            }
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
        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;
            }
        }