新增a*寻路

This commit is contained in:
yhh
2020-06-09 19:45:09 +08:00
parent 9e0d14da7c
commit 0fd33be5f9
14 changed files with 998 additions and 3 deletions
@@ -0,0 +1,14 @@
class PriorityQueueNode {
/**
* 插入此节点的优先级。在将节点添加到队列之前必须设置
*/
public priority: number = 0;
/**
* 由优先级队列使用-不要编辑此值。表示插入节点的顺序
*/
public insertionIndex: number = 0;
/**
* 由优先级队列使用-不要编辑此值。表示队列中的当前位置
*/
public queueIndex: number = 0;
}