Class LocalPathing
- java.lang.Object
-
- org.rspeer.game.movement.pathfinding.LocalPathing
-
public class LocalPathing extends Object
-
-
Constructor Summary
Constructors Constructor Description LocalPathing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Coord>calculate(Coord start, Coord end)static List<Coord>calculate(Coord start, Coord end, int maxScore)static List<Coord>calculate(Coord start, Coord end, int maxScore, BiPredicate<Coord,Coord> override)static List<Coord>calculate(Coord start, Coord end, BiPredicate<Coord,Coord> override)static intgetDistance(Coord from, Coord to)static booleanisValid(Direction dir, Coord from, Coord to, boolean ignoreStartBlocked)
-
-
-
Method Detail
-
calculate
public static List<Coord> calculate(Coord start, Coord end, BiPredicate<Coord,Coord> override)
-
calculate
public static List<Coord> calculate(Coord start, Coord end, int maxScore, BiPredicate<Coord,Coord> override)
-
getDistance
public static int getDistance(Coord from, Coord to)
- Returns:
- Integer.MAX_VALUE if pathfinding failed, or the number of walkable positions between tiles.
-
-