예제 #1
0
        public GameCreation()
        {
            String command = welcomeMenu.WelcomeMenuPrint();

            switch (command)
            {
            case "c": CreateNewHero();
                Hero     hero        = new Hero(heroBusiness.GetLast());
                GameLoop gameLoopNew = new GameLoop(hero);
                break;

            case "l":
                int      heroId         = charSelect.CharacterSelectMenu();
                var      loadedHeroes   = heroBusiness.GetAll();
                Hero     heroPicked     = new Hero(loadedHeroes[heroId - 1]);
                GameLoop gameLoopLoaded = new GameLoop(heroPicked);
                break;

            case "d":
                databaseModification.ChooseTable();
                break;
            }
        }