diff --git a/Algorithm/PathFinding/Node.php b/Algorithm/PathFinding/Node.php index 96bf5a3bb..147fdd1e9 100644 --- a/Algorithm/PathFinding/Node.php +++ b/Algorithm/PathFinding/Node.php @@ -46,4 +46,14 @@ class Node { return $this->weight; } + + public function getX() : int + { + return $this->x; + } + + public function getY() : int + { + return $this->y; + } }