From 5aad7af88f8546cb4be686fe90b31a1e69815486 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 20 Aug 2019 16:08:31 +0200 Subject: [PATCH] Update Node.php --- Algorithm/PathFinding/Node.php | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Algorithm/PathFinding/Node.php b/Algorithm/PathFinding/Node.php index 8b1378917..965186111 100644 --- a/Algorithm/PathFinding/Node.php +++ b/Algorithm/PathFinding/Node.php @@ -1 +1,51 @@ +x = $x; + $this->y = $y; + $this->weight = $weight; + $this->isWalkable = $isWalkable; + } + + public function isWalkable() : bool + { + return $this->isWalkable; + } + + public function getWeight() : float + { + return $this->weight; + } +}