|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.newdawn.slick.util.pathfinding.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 |
getCost(TileBasedMap map,
Mover mover,
int x,
int y,
int tx,
int ty)
Get the additional heuristic cost of the given tile. |
| 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 getCost(TileBasedMap map,
Mover mover,
int x,
int y,
int tx,
int ty)
AStarHeuristic
getCost in interface AStarHeuristicmap - The map on which the path is being foundmover - The entity that is moving along the pathx - The x coordinate of the tile being evaluatedy - The y coordinate of the tile being evaluatedtx - The x coordinate of the target locationty - Teh y coordinate of the target location
AStarHeuristic.getCost(TileBasedMap, Mover, int, int, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||