public static void ViewAll(List <Rooms> data)
 {
     foreach (Rooms element in data)
     {
         StandardMessages.DisplayAll(element.Name.ToString());
     }
 }
        public static void ControlMap(string function, string obj, GameObjects options)
        {
            List <IExistsinRoom> roomObjects = new List <IExistsinRoom>();

            foreach (IExistsinRoom roomObject in options.Items)
            {
                roomObjects.Add(roomObject);
            }
            foreach (IExistsinRoom roomObject in options.Mobs)
            {
                roomObjects.Add(roomObject);
            }
            foreach (IExistsinRoom roomObject in options.Potions)
            {
                roomObjects.Add(roomObject);
            }
            foreach (IExistsinRoom roomObject in options.Treasures)
            {
                roomObjects.Add(roomObject);
            }
            foreach (IExistsinRoom roomObject in options.Weapons)
            {
                roomObjects.Add(roomObject);
            }


            switch (function)
            {
            //Displays a list of rooms
            case "room":
            case "rooms":
                StandardMessages.DisplayThis("rooms");
                SearchCommands.ViewAll(options.Rooms);
                break;

            //Displays a list of weapons

            case "look":
                SearchCommands.LookObject(obj, roomObjects);
                break;

            case "fight":
            case "attack":
                CombatCommands.StartCombat(options, obj);
                break;



            default:


                break;
            }
        }
        public static void Startup()
        {
            Player      player  = Player.GetPlayer(" ", " ", Player.Classes.Brawler, Player.Body.Athletic, "R1");
            GameObjects options = new GameObjects();
            bool        run     = true;

            do
            {
                Console.WriteLine("Enter new game or load game");
                string input = Console.ReadLine();
                switch (input.ToLower())
                {
                case "skip":
                    run = false;

                    break;

                case "new game":
                    player = NewPlayer();
                    CreateUserOptions(player.Name);
                    options = LoadOptions.InitializeObjects(player);
                    run     = false;
                    break;

                case "load game":
                    options = LoadOptions.LoadObjects(" ");
                    run     = false;
                    break;

                default:
                    Console.WriteLine("\nPlease enter only new game or load game");
                    break;
                }
            }while (run == true);

            StandardMessages.TitleCard();



            Rooms room = MakeRoom(options.Rooms, options.Player.RoomID);

            SearchCommands.ViewRoom(room.Name);

            GeneralCommands.CommandInput(options);
        }