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