Ejemplo n.º 1
0
        public SubMenu(ResultLogger log, string title, List <IGameControl> controls)
        {
            logger = log;

            Title    = title;
            Controls = controls;
        }
Ejemplo n.º 2
0
        public Menu(MenuType type, List <SubMenu> menus, List <IGameControl> wanted, ResultLogger log)
        {
            logger         = log;
            WantedControls = wanted;

            Type  = type;
            Menus = menus;

            hookMenus();
        }
Ejemplo n.º 3
0
        public Survey(ResultLogger logger, MenuType type)
        {
            this.logger = logger;
            Type        = type;
            Alpha       = (type == MenuType.ALPHA);
            KnewAlpha   = false;
            Comment     = String.Empty;

            initSurveys();
            initCommands();
        }
Ejemplo n.º 4
0
        public MenuParser(ResultLogger log, string input_location)
        {
            location   = input_location;
            logger     = log;
            current_id = 0;

            control_groupings = new Dictionary <IGameControl, string>();
            wanted_controls   = new Dictionary <int, List <IGameControl> >();

            readInControls(location);
        }
Ejemplo n.º 5
0
        public MainApplication()
        {
            logger     = new ResultLogger(ANSWER_OUTPUT, SURVEY_OUTPUT);
            completion = new CompletionTracker();
            factory    = new MenuFactory(new MenuParser(logger, INPUT_FILE), logger);

            CurrentState     = StudyState.INITIAL;
            Name             = String.Empty;
            Error            = String.Empty;
            CurrentMenu      = null;
            CurrentType      = MenuType.NONE;
            InitInstructions = new InstructionView();
            InitInstructions.ContinueSelected += handleInstructionsComplete;
            Instructions  = new Instructions();
            CurrentSurvey = null;

            initCommands();
        }
Ejemplo n.º 6
0
 public MenuFactory(MenuParser parse, ResultLogger log)
 {
     parser = parse;
     logger = log;
 }