public PathNode(Pathable s, Pathable hub, PathNode parent) { parentNode = parent; element = s; H = s.getHeuristicScore(hub); setF(parent.F + s.getMoveScore(parentNode.element)); }
public PathNode(Pathable s, Pathable hub) { parentNode = null; element = s; H = s.getHeuristicScore(hub); }