mirror of
https://github.com/Xevion/Paths.git
synced 2025-12-06 01:15:44 -06:00
21 lines
768 B
C#
21 lines
768 B
C#
using System.Collections.Generic;
|
|
using Algorithms;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// A general interface for implementing pathfinding algorithms.
|
|
/// </summary>
|
|
public interface IPathfinding {
|
|
/// <summary>
|
|
/// Finds a valid path between two Node objects.
|
|
/// </summary>
|
|
/// <param name="start">The position from which pathfinding begins</param>
|
|
/// <param name="end">The position trying to be found via pathfinding</param>
|
|
/// <returns>A List of NodeGridGrid objects representing the timeline of Pathfinding</returns>
|
|
Stack<Node> FindPath(Vector2Int start, Vector2Int end);
|
|
NodeGrid NodeGrid { get; }
|
|
Vector2Int Start { get; }
|
|
Vector2Int End { get; }
|
|
ChangeController ChangeController { get; }
|
|
void Cleanup();
|
|
} |