From aec62e3eb2c00ea9a4554fa4be15679248db6455 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 20 Aug 2019 16:20:38 +0200 Subject: [PATCH] Update Node.php --- Algorithm/PathFinding/Node.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; + } }