A* search algorithm: Difference between revisions

m
Line 1,963:
* @return : cost from current node to goal. use Manhattan distance.
*/
public int calculateCost(CoordMazecoord goal){
int rState = this.getR();
int rGoal = goal.getR();
Line 1,979:
}
 
public void setFather(CoordMazecoord node){
this.father = node;
}
 
public int getDeepgetAStartCost() {
return deepAStartCost;
}
 
public void setDeepsetAStartCost(int deepaStartCost) {
this.deepAStartCost = deepaStartCost;
}
 
Anonymous user