moveNodes method

void moveNodes(
  1. DFAStarMap map
)

移动当前结点

Implementation

void moveNodes(DFAStarMap map) {
  while (_openList.length > 0) {
    /// 第一个元素
    DFAStarNode current = _openList.removeAt(0);
    _closeList.add(current);
    addNeighborNodeInOpen(map, current);
    if (isPositionInClose(map.end.position)) {
      drawPath(map.maps, map.end);
      break;
    }
  }
}