新增a*寻路
This commit is contained in:
5
source/src/AI/Pathfinding/AStar/IAstarGraph.ts
Normal file
5
source/src/AI/Pathfinding/AStar/IAstarGraph.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
interface IAstarGraph<T> {
|
||||
getNeighbors(node: T): Array<T>;
|
||||
cost(from: T, to: T): number;
|
||||
heuristic(node: T, goal: T);
|
||||
}
|
||||
Reference in New Issue
Block a user