Constructor and Description |
---|
HeuristicManhattan(int minimumCost)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getCost(int sx,
int sy,
int dx,
int dy)
This controls the order in which tiles are searched while attempting to find a path to the target location.
|
public HeuristicManhattan(int minimumCost)
minimumCost
- The minimum cost value.public double getCost(int sx, int sy, int dx, int dy)
Heuristic