|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ed.inf.sdp2012.group7.strategy.astar.heuristics.ClosestHeuristic
public class ClosestHeuristic
A heuristic that uses the tile that is closest to the target as the next best tile.
Constructor Summary | |
---|---|
ClosestHeuristic()
|
Method Summary | |
---|---|
float |
getEstimatedDistanceToGoal(int startX,
int startY,
int goalX,
int goalY)
The heuristic tries to guess how far a given Node is from the goal Node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClosestHeuristic()
Method Detail |
---|
public float getEstimatedDistanceToGoal(int startX, int startY, int goalX, int goalY)
OldAStarHeuristic
getEstimatedDistanceToGoal
in interface OldAStarHeuristic
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |