void BuildPathsFromMaze() { aStar.Initialize(maze.xSize, maze.ySize); for (int x = 0; x < maze.xSize; x++) { for (int y = 0; y < maze.ySize; y++) { if (!maze.IsPlayerSpace(x, y)) { aStar.AddBlocked(new GridPoint() { x = x, y = y }); } } } }
void BuildPathsFromMaze() { aStar.Initialize(maze.xSize, maze.ySize); for (int x = 0; x < maze.xSize; x++) { for (int y = 0; y < maze.ySize; y++) { if (!maze.IsPlayerSpace(x, y)) { aStar.AddBlocked(new GridPoint() { x = x, y = y }); } } } }