Exemple #1
0
        private void Welcome()
        {
            _interpreter = new UserInputInterpreter();

            while (true)
            {
                Console.Write(MainConsoleMessages.PROMPT, Location);

                _interpreter.Interpreter(Console.ReadLine());
            }
        }
Exemple #2
0
        public bool SelectClass()
        {
            _interpreter = new UserInputInterpreter();

            Console.Write(MainConsoleMessages.CLASS_SELECT_MESSAGE);

            GameClass value = _interpreter.ClassInterpreter(Console.ReadLine());

            if(value != null)
            {
                CurrentClass = value;

                Console.Write(MainConsoleMessages.CURR_CLASS, CurrentClass.Name);

                return true;
            }
            else
            {
                Console.Write(MainConsoleMessages.CLASS_SELECT_MESSAGE_ERROR);
            }

            return false;
        }