Esempio n. 1
0
        public void Update(Bot bot)
        {
            //todo check if enemy is travelling vaguely towards you
            //if so, might as well set velocity to 0 and wait

            bot.acceleration += Behaviours.Pursue(bot);

            if (!bot.GetStaticMap().IsLineOfSight(bot.GetPosition(), bot.Enemy.GetPosition()))
            {
                bot.SetState(new Wander());
            }
        }