Class ManhattanHeuristic

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

public class ManhattanHeuristic extends Object implements AStarHeuristic
  • Constructor Details

    • ManhattanHeuristic

      public ManhattanHeuristic(int minimumCost)
  • Method Details

    • getCost

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