From 3dcd26a1243d0d38f40b8a8d1348fd07e0afb237 Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期五, 11 四月 2025 08:24:11 +0800
Subject: [PATCH] 1
---
src/main/java/com/zy/common/model/NavigateNode.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/common/model/NavigateNode.java b/src/main/java/com/zy/common/model/NavigateNode.java
index 5a41b66..744fec3 100644
--- a/src/main/java/com/zy/common/model/NavigateNode.java
+++ b/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;
}
--
Gitblit v1.9.1