/// <summary>
        ///     Set all the default values for the pathfinding
        ///     object
        /// </summary>
        public void SetDefaultValues()
        {
            pathParameters = new PathfindingParameters();
            LogDebug       = false;

            pathParameters.threadPathCreation = true;
            pathColor = Color.magenta;
        }
Esempio n. 2
0
 /// <summary>
 ///     Start the path with a passed grid.
 ///     This will bypass any grid stored in the pathfinding object
 /// </summary>
 /// <param name="pathfinding">  The parameters to  use when finding a path  </param>
 /// <param name="gridBase">     The grid to use to find a path              </param>
 public void Init(PathfindingParameters pathfinding, Grid gridBase)
 {
     grid       = gridBase;
     Parameters = pathfinding;
     init();
 }
Esempio n. 3
0
 /// <summary>
 ///     Initialize the path with just the parameters.
 ///     This will contain a cached grid within in
 /// </summary>
 /// <param name="pathfinding">  The parameters to  use when finding a path  </param>
 public void Init(PathfindingParameters pathfinding)
 {
     Parameters = pathfinding;
     grid       = pathfinding.gridBase;
     init();
 }