bool DoInstruction() { BotInstruction ins = BotInstruction.Find(Instructions[cur].Name); if (ins == null) { return(false); } return(ins.Execute(this, Instructions[cur])); }
static bool DoInstruction(PlayerBot bot) { BotInstruction ins = BotInstruction.Find(bot.Instructions[bot.cur].Name); if (ins == null) { return(false); } return(ins.Execute(bot, bot.Instructions[bot.cur])); }