Class ManhattanHeuristic

java.lang.Object
com.ardorcraft.pathfinding.heuristics.ManhattanHeuristic
All Implemented Interfaces:
AStarHeuristic

public class ManhattanHeuristic extends Object implements AStarHeuristic
  • Constructor Details Link icon

    • ManhattanHeuristic Link icon

      public ManhattanHeuristic(int minimumCost)
  • Method Details Link icon

    • getCost Link icon

      public float getCost(int x, int y, int z, int tx, int ty, int tz)
      Specified by:
      getCost in interface AStarHeuristic