Beispiel #1
0
 public void Init()
 {
     commands = new ArrayList(new string[]{"quit","move"});
     theParser = new Parser(commands);
 }
Beispiel #2
0
 private ParsedInput parse(String userInput)
 {
     Parser theParser = new Parser(availableCommands.GetLabels());
     return theParser.Parse(userInput);
 }
Beispiel #3
0
 public CommandHandler()
 {
     availableCommands = new Hashtable();
     SetupCommands();
     theParser = new Parser(new ArrayList(availableCommands.Keys));
 }