Example #1
0
        public PathNode(Pathable s, Pathable hub, PathNode parent)
        {
            parentNode = parent;
            element    = s;
            H          = s.getHeuristicScore(hub);

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