示例#1
0
        int pathCost;       //cost till here..


        //initial state, parent == state
        public Node(Intersection stateIn, Node parentIn, int pathCostIn)
        {
            this.state    = stateIn;
            this.parent   = parentIn;
            this.pathCost = pathCostIn;
        }
 public bool equals(Intersection check)
 {
     return((check.X() == this.x) && (check.Y() == this.y));
 }