getX() - $goal->getX()); $deltaY = abs($node->getY() - $goal->getY()); return $deltaX + $deltaY; } }