private static void PlayScene(GameEnvironment env)
        {
            UserInterfaceHelper.ClearWindow();

            UserInterfaceHelper.OutputLine(env.CurrentScene.Description);
            UserInterfaceHelper.OutputLine();

            var actions = SceneParseHelper.GetSceneActions(env.CurrentScene).ToList();

            PrepareActions(env, actions);
        }
Example #2
0
        private static void ShowMenu(bool clearWindow = true)
        {
            if (clearWindow)
            {
                UserInterfaceHelper.ClearWindow();
            }

            UserInterfaceHelper.OutputLine(Strings.Tools_WhatToDo);
            UserInterfaceHelper.OutputLine(Strings.Tools_Menu);
            var selection = UserInterfaceHelper.GetNextKey();

            // (?) for help, (q) to quit, (p) to play a game package, (l) to load a saved game,
            // (v) to validate a project, (b) to build / test a project, (k) to package up a finished project

            switch (selection)
            {
            case '?':
                ShowHelp();
                break;

            case 'q':
                return;

            case 'p':
                PlayPackage();
                break;

            case 'l':
                LoadSaved();
                break;

            case 'v':
                ValidateProject();
                break;

            case 'b':
                TestProject();
                break;

            case 'k':
                CreatePackage();
                break;

            default:
                UnrecognizedOption();
                break;
            }
        }