bool JPSPlusPathFinder::AddNeighbors(const Cell* currentCell, const Cell* nextCell, const Cell* goalCell, Direction direction) { RETURN_FALSE_IF_NULL(nextCell); bool outIsCompleted = false; Direction outMarkedDirection; const Cell* nextNextCell = Jump(nextCell, goalCell, direction, outIsCompleted, outMarkedDirection); if (outIsCompleted) { LinkCell(currentCell, nextNextCell, (direction)); LinkCell(nextNextCell, goalCell, outMarkedDirection); return true; } if (nextNextCell) { AddToOpenList(currentCell, nextNextCell, goalCell, direction); } return false; }
/** Constructor for a link cell that only takes the datum */ StripSpace::LinkCell::LinkCell(LPD8806 * datum) { LinkCell(datum, NULL); }