src/main/java/com/zy/common/model/NavigateNode.java
@@ -20,6 +20,7 @@ private Boolean isInflectionPoint;//是否为拐点 private String direction;//行走方向 private Integer moveDistance;//行走距离 private Integer nodeValue;//节点数据 public NavigateNode(int x, int y) { this.x = x; @@ -32,7 +33,7 @@ this.Father = father; if (this.Father != null) { //走过的步数等于父节点走过的步数加一 this.G = father.G + 1; this.G = father.G + this.G; } else { //父节点为空代表它是第一个结点 this.G = 0; }