Class ConstrainedAStar

java.lang.Object
com.ardorcraft.pathfinding.ConstrainedAStar

public class ConstrainedAStar extends Object
AStar pathfinding with pluggable cost calculator (since that is game specific).

Typical usage:

 ConstrainedAStar pathFinder = new ConstrainedAStar(blockWorld, 40);
 ...
 PathResult pathResult = pathFinder.findPath(source.x, source.y, source.z, target.x, target.y, target.z);
 
  • Constructor Details

  • Method Details

    • findPath

      public PathResult findPath(int sx, int sy, int sz, int tx, int ty, int tz)