Esempio n. 1
0
        bool DoInstruction()
        {
            BotInstruction ins = BotInstruction.Find(Instructions[cur].Name);

            if (ins == null)
            {
                return(false);
            }
            return(ins.Execute(this, Instructions[cur]));
        }
Esempio n. 2
0
        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]));
        }