mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-05 12:08:42 +00:00
remove debugging lines
This commit is contained in:
parent
70f1662929
commit
f24e6f4681
|
|
@ -92,10 +92,6 @@ class JumpPointSearch implements PathFinderInterface
|
||||||
*/
|
*/
|
||||||
public static function identifySuccessors(JumpPointNode $node, Grid $grid, int $heuristic, int $movement, JumpPointNode $endNode, Heap $openList) : Heap
|
public static function identifySuccessors(JumpPointNode $node, Grid $grid, int $heuristic, int $movement, JumpPointNode $endNode, Heap $openList) : Heap
|
||||||
{
|
{
|
||||||
if ($node->getY() === 5) {
|
|
||||||
$a = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$neighbors = self::findNeighbors($node, $movement, $grid);
|
$neighbors = self::findNeighbors($node, $movement, $grid);
|
||||||
$neighborsLength = \count($neighbors);
|
$neighborsLength = \count($neighbors);
|
||||||
|
|
||||||
|
|
@ -106,10 +102,6 @@ class JumpPointSearch implements PathFinderInterface
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($neighbor->getX() === 2) {
|
|
||||||
$a = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
$jumpPoint = self::jump($neighbor, $node, $endNode, $movement, $grid);
|
$jumpPoint = self::jump($neighbor, $node, $endNode, $movement, $grid);
|
||||||
|
|
||||||
if ($jumpPoint === null || $jumpPoint->isClosed()) {
|
if ($jumpPoint === null || $jumpPoint->isClosed()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user