Пример #1
0
 public Parser(CommandWords newCommands)
 {
     //_commands = newCommands;
     _commands = new Stack <CommandWords>();
     _commands.Push(newCommands);
     NotificationCenter.Instance.AddObserver("ShowBagCommands", ShowBagCommands);
     NotificationCenter.Instance.AddObserver("PushSmithCommands", PushSmithCommands);
     NotificationCenter.Instance.AddObserver("ShowCommands", ShowCommands);
 }
Пример #2
0
 public Parser(CommandWords newCommands)
 {
     //commands = newCommands;
     allCommands = new Stack <CommandWords>();
     allCommands.Push(newCommands);
     NotificationCenter.Instance.addObserver("PushBattleCommands", PushBattleCommands);
     NotificationCenter.Instance.addObserver("PushMerchantCommands", PushMerchantCommands);
     NotificationCenter.Instance.addObserver("PushBackpackCommands", PushBackpackCommands);
     NotificationCenter.Instance.addObserver("PopCommands", PopCommands);
 }
Пример #3
0
 public Parser(CommandWords newCommands)
 {
     commands = newCommands;
 }
Пример #4
0
 public HelpCommand(CommandWords commands) : base()
 {
     words     = commands;
     this.Name = "help";
 }