diff --git a/.vs/AStarPathFinding/v16/.suo b/.vs/AStarPathFinding/v16/.suo index b587a27..2809135 100644 Binary files a/.vs/AStarPathFinding/v16/.suo and b/.vs/AStarPathFinding/v16/.suo differ diff --git a/AstarPathFinder.cs b/AstarPathFinder.cs index 58be2d0..4177dd4 100644 --- a/AstarPathFinder.cs +++ b/AstarPathFinder.cs @@ -127,6 +127,9 @@ namespace AStarPathFinding switch(tableStateData[i, j]) { case eTileState.Start: + + + case eTileState.Goal: case eTileState.Wall: case eTileState.Road: @@ -330,33 +333,33 @@ namespace AStarPathFinding continue; } - if (tableStateData[tempChildAxis.X, tempChildAxis.Y] == eTileState.RRoad & Form1.Direction == "Left") - { - openNode = tableNodeData[tempChildAxis.X, tempChildAxis.Y]; - openNode.SetParent(focusNode); - openNode.SetGCost(gCost + openNode.parent.R); - openNode.SetHCost(openNode.parent.R + 1000); - openNode.ParentDirection = neerAxis[i]; + //if (tableStateData[tempChildAxis.X, tempChildAxis.Y] == eTileState.RRoad & Form1.Direction == "Left") + //{ + // openNode = tableNodeData[tempChildAxis.X, tempChildAxis.Y]; + // openNode.SetParent(focusNode); + // openNode.SetGCost(gCost + openNode.parent.R); + // openNode.SetHCost(openNode.parent.R + 1000); + // openNode.ParentDirection = neerAxis[i]; - dicOpenList.Add(tempChildAxis, openNode); - tableStateData[tempChildAxis.X, tempChildAxis.Y] = eTileState.Open; + // dicOpenList.Add(tempChildAxis, openNode); + // tableStateData[tempChildAxis.X, tempChildAxis.Y] = eTileState.Open; - continue; - } + // continue; + //} - if (tableStateData[tempChildAxis.X, tempChildAxis.Y] == eTileState.LRoad & Form1.Direction == "Right") - { - openNode = tableNodeData[tempChildAxis.X, tempChildAxis.Y]; - openNode.SetParent(focusNode); - openNode.SetGCost(gCost + openNode.parent.L); - openNode.SetHCost(openNode.parent.L + 1000); // 휴리스틱 값 수정해서 길 따라갈 수 있게 점수를 낮춰줌 수정 - openNode.ParentDirection = neerAxis[i]; + //if (tableStateData[tempChildAxis.X, tempChildAxis.Y] == eTileState.LRoad & Form1.Direction == "Right") + //{ + // openNode = tableNodeData[tempChildAxis.X, tempChildAxis.Y]; + // openNode.SetParent(focusNode); + // openNode.SetGCost(gCost + openNode.parent.L); + // openNode.SetHCost(openNode.parent.L + 1000); // 휴리스틱 값 수정해서 길 따라갈 수 있게 점수를 낮춰줌 수정 + // openNode.ParentDirection = neerAxis[i]; - dicOpenList.Add(tempChildAxis, openNode); - tableStateData[tempChildAxis.X, tempChildAxis.Y] = eTileState.Open; + // dicOpenList.Add(tempChildAxis, openNode); + // tableStateData[tempChildAxis.X, tempChildAxis.Y] = eTileState.Open; - continue; - } + // continue; + //} if (tableStateData[tempChildAxis.X, tempChildAxis.Y] == eTileState.LRoad & Form1.Direction == "Left") { diff --git a/bin/Debug/AStarPathFinding.exe b/bin/Debug/AStarPathFinding.exe index a0837a7..b67b368 100644 Binary files a/bin/Debug/AStarPathFinding.exe and b/bin/Debug/AStarPathFinding.exe differ diff --git a/bin/Debug/AStarPathFinding.pdb b/bin/Debug/AStarPathFinding.pdb index 537ea9a..43fdded 100644 Binary files a/bin/Debug/AStarPathFinding.pdb and b/bin/Debug/AStarPathFinding.pdb differ diff --git a/obj/Debug/AStarPathFinding.csprojAssemblyReference.cache b/obj/Debug/AStarPathFinding.csprojAssemblyReference.cache index aed1b3b..ec33402 100644 Binary files a/obj/Debug/AStarPathFinding.csprojAssemblyReference.cache and b/obj/Debug/AStarPathFinding.csprojAssemblyReference.cache differ diff --git a/obj/Debug/AStarPathFinding.exe b/obj/Debug/AStarPathFinding.exe index a0837a7..b67b368 100644 Binary files a/obj/Debug/AStarPathFinding.exe and b/obj/Debug/AStarPathFinding.exe differ diff --git a/obj/Debug/AStarPathFinding.pdb b/obj/Debug/AStarPathFinding.pdb index 537ea9a..43fdded 100644 Binary files a/obj/Debug/AStarPathFinding.pdb and b/obj/Debug/AStarPathFinding.pdb differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 091b97b..01544ff 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ