주석 추가
This commit is contained in:
Binary file not shown.
@@ -342,7 +342,7 @@ namespace AStarPathFinding
|
||||
if (gCost == 14)
|
||||
{
|
||||
Point tempNextIndex = AddPoint(focusNode.axis, neerAxis[i + 1]);
|
||||
Point tempPrevIndex = AddPoint(focusNode.axis, neerAxis[i - 1 < 0 ? 7 : i - 1]);
|
||||
Point tempPrevIndex = AddPoint(focusNode.axis, neerAxis[i - 1 < 0 ? 7 : i - 1]); // i - 1이 0보다 작을 경우 7(참), i - 1이 0보다 클 경우 i - 1을 결과값으로 가져감
|
||||
|
||||
if (tableStateData[tempNextIndex.X, tempNextIndex.Y] == eTileState.Wall ||
|
||||
tableStateData[tempPrevIndex.X, tempPrevIndex.Y] == eTileState.Wall)
|
||||
|
||||
2
Form1.cs
2
Form1.cs
@@ -33,7 +33,7 @@ namespace AStarPathFinding
|
||||
//======================구조체
|
||||
|
||||
//상수=======================
|
||||
const int TABLE_SIZE = 15;//테이블 사이즈
|
||||
const int TABLE_SIZE = 16;//테이블 사이즈 기본 값 16
|
||||
readonly Point defaultStartPoint = new Point(5, 6);//디폴트 시작점
|
||||
readonly Point defaultGoalPoint = new Point(9, 6);//디폴트 목적지
|
||||
readonly Point[] defaultWallPoint = new Point[3]//디폴트 벽 위치
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user