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); }
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); }
public Parser(CommandWords newCommands) { commands = newCommands; }
public HelpCommand(CommandWords commands) : base() { words = commands; this.Name = "help"; }