Ejemplo n.º 1
0
 // Index by which bot is searching (prevents conflicts)
 public NavNode GetPrevious(NavAgent agent)
 {
     if (Previous.ContainsKey(agent))
     {
         return Previous[agent];
     }
     else return null;
 }
Ejemplo n.º 2
0
        public AiPlayer(World world, Vector2 position, Category collisionCat, float scale, float limbStrength, float limbDefense, bool evilSkin, Color color, PlayerIndex player, StickFigure[] dudes)
            : base(world, position, collisionCat, scale, limbStrength, limbDefense, evilSkin, color)
        {
            destinations = new List<Vector2>();
            this.player = player;
            this.target = null;
            this.ListStickFigures = dudes;
            random = new Random();
            if (nav == null) nav = new NavAgent(this);

            SetAttackTimeRange(100, 300); // milliseconds
            SetMissileTimeRange(250, 750);
            SetBombTimeRange(2000, 4000);
        }
Ejemplo n.º 3
0
 // Index by which bot is searching (prevents conflicts)
 public void SetPrevious(NavAgent agent, NavNode node)
 {
     Previous[agent] = node;
 }