Beispiel #1
0
        /// <summary>
        /// Displays the data from the entrance file
        /// </summary>
        static void DisplayData()
        {
            Console.Clear();
            Console.WriteLine("DONNEES DU FICHIER D'ENTREE\n");

            DataMap myDataMap = new DataMap();

            Map myMap = myDataMap.GetDataMap();

            DisplayMap(myMap);
            DisplayMountainList(service.GetMountains());
            DisplayTreasureList(service.GetTreasures());
            DisplayAdventurerList(service.GetAdventurers());
            Console.WriteLine();
            Console.WriteLine("Faire partir les aventuriers à la recherche des trésors (O/N) ?");
            var adventureOrNot = Console.ReadLine();

            switch (adventureOrNot)
            {
            case "O":
            case "o":
                AdventurersOnTheGo(service.GetAdventurers(), myMap, service.GetMountains(), service.GetTreasures());
                break;

            case "N":
            case "n":
                BackToTheMenu();
                break;

            default:
                Console.WriteLine("Choix invalide, l'application va fermer...");
                break;
            }
            Console.ReadKey();
        }