주석 추가

This commit is contained in:
김민구
2020-12-14 18:36:30 +09:00
parent 97bd185eb7
commit 66a477808a
8 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -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)

View File

@@ -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.