예제 #1
0
파일: ClosedList.php 프로젝트: tvswe/astar
 /**
  * @param ListNode $node
  * @return bool
  */
 public final function contains(ListNode $node)
 {
     return array_key_exists($node->getId(), $this->nodes);
 }
예제 #2
0
파일: Path.php 프로젝트: tvswe/astar
 /**
  * @param ListNode $node
  * @return Node
  */
 public function convertNode(ListNode $node)
 {
     return new Node($node->getId(), $node->getX(), $node->getY());
 }