18 lines
483 B
C#
18 lines
483 B
C#
namespace SpriteCompiler.AI
|
|
{
|
|
public class AStarSearch<A, S, T, C> : BestFirstSearch<A, S, T, C>
|
|
where T : HeuristicSearchNode<A, S, T, C>
|
|
where C : IPathCost<C>
|
|
{
|
|
public AStarSearch(AbstractAISearch<A, S, T, C> search)
|
|
: base(search, new AStarComparator<A, S, T, C>())
|
|
{
|
|
}
|
|
|
|
public AStarSearch(AbstractAISearch<A, S, T, C> search, IQueue<T> fringe)
|
|
: base(search, fringe)
|
|
{
|
|
}
|
|
}
|
|
}
|