Пример #1
0
 /// <summary>
 /// Attempts to search this grid for a path between the start and end points.
 /// </summary>
 /// <param name="start">The <see cref="Index"/> into the search space representing the start position</param>
 /// <param name="end">The <see cref="Index"/> into the search space representing the end position</param>
 /// <param name="diagonal">The diagonal mode used when finding paths</param>
 /// <param name="callback">The <see cref="MonoDelegate"/> to invoke when the algorithm has completed</param>
 public void findPath(Index start, Index end, DiagonalMode diagonal, MonoDelegate callback)
 {
     // Call through
     findPath(start, end, diagonal, (Path path, PathRequestStatus status) =>
     {
         // Invoke the mono delegate
         callback.invoke(new MonoDelegateEvent(path, status));
     });
 }
Пример #2
0
 /// <summary>
 /// Attempts to search this grid for a path between the start and end points.
 /// </summary>
 /// <param name="start">The <see cref="Index"/> into the search space representing the start position</param>
 /// <param name="end">The <see cref="Index"/> into the search space representing the end position</param>
 /// <param name="callback">The <see cref="MonoDelegate"/> to invoke when the algorithm has completed</param>
 public abstract void findPath(Index start, Index end, MonoDelegate callback);
Пример #3
0
 /// <summary>
 /// Attempts to search this grid for a path between the start and end points.
 /// </summary>
 /// <param name="start">The <see cref="Index"/> into the search space representing the start position</param>
 /// <param name="end">The <see cref="Index"/> into the search space representing the end position</param>
 /// <param name="diagonal">The diagonal mode used when finding paths</param>
 /// <param name="callback">The <see cref="MonoDelegate"/> to invoke when the algorithm has completed</param>
 public abstract void findPath(Index start, Index end, DiagonalMode diagonal, MonoDelegate callback);