방향성 지정 오류 수정

This commit is contained in:
김민구
2020-12-15 18:50:22 +09:00
parent f4ddd11c7b
commit 1d32355668
7 changed files with 40 additions and 22 deletions

View File

@@ -17,7 +17,7 @@ namespace AStarPathFinding
public partial class Form1 : Form
{
public static bool Direction { get; set; } // 방향 설정!!!
public static string Direction { get; set; } // 방향 설정!!!
//구조체=====================
struct stCurrentAction//사용자의 세팅(타일배치)종류 확인용 구조체
@@ -417,14 +417,14 @@ namespace AStarPathFinding
SetCurrentAction(null, eTileState.None);
pathFinder.PathFind(pn_Table, startPoint, goalPoint);
clickState = false;
Direction = false;
Direction = "Up";
}
else
{
SetCurrentAction(null, eTileState.None);
pathFinder.PathFind(pn_Table, goalPoint, startPoint);
clickState = true;
Direction = true;
Direction = "Up";
}
}
}