示例#1
0
    public void Run()
    {
        string[] commandInput;

        while ((commandInput = Console.ReadLine().Split(';'))[0] != "END")
        {
            ICommandParser commandParser = new CommandParser(commandInput, weapons);
            IExecutable    command       = commandParser.CreateCommand();

            command.Execute();
        }
    }