#
Junjie
2025-07-25 efa3e3042d30506b8eb3ce662d39c4dd954ae945
src/main/java/com/zy/common/model/NavigateNode.java
@@ -20,6 +20,9 @@
    private Boolean isInflectionPoint;//是否为拐点
    private String direction;//行走方向
    private Integer moveDistance;//行走距离
    private Integer nodeValue;//节点数据
    private Boolean linePartAllowGo = false;//直线段部分,允许直接行走
    private Long linePartFlag;//直线段数据标识
    public NavigateNode(int x, int y) {
        this.x = x;
@@ -32,7 +35,7 @@
        this.Father = father;
        if (this.Father != null) {
            //走过的步数等于父节点走过的步数加一
            this.G = father.G + 1;
            this.G = father.G + this.G;
        } else { //父节点为空代表它是第一个结点
            this.G = 0;
        }