Package zombie.ai.astar.heuristics
Class ManhattanHeuristic
java.lang.Object
zombie.ai.astar.heuristics.ManhattanHeuristic
- All Implemented Interfaces:
AStarHeuristic
public class ManhattanHeuristic extends java.lang.Object implements AStarHeuristic
-
Constructor Summary
Constructors Constructor Description ManhattanHeuristic(int minimumCost)
-
Method Summary
Modifier and Type Method Description float
getCost(TileBasedMap map, Mover mover, int x, int y, int z, int tx, int ty, int tz)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ManhattanHeuristic
public ManhattanHeuristic(int minimumCost)
-
-
Method Details
-
getCost
- Specified by:
getCost
in interfaceAStarHeuristic
-