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; + } +}