public class BFS
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
OFFSET_SEARCH |
| Constructor and Description |
|---|
BFS() |
| Modifier and Type | Method and Description |
|---|---|
static PathFindingNode |
bfsClosestToPath(java.util.ArrayList<org.tribot.api2007.types.RSTile> path,
PathFindingNode start) |
static PathFindingNode |
bfsClosestToPath(java.util.ArrayList<org.tribot.api2007.types.RSTile> path,
PathFindingNode start,
int limit) |
static PathFindingNode |
getRandomTileNearby(PathFindingNode start) |
static boolean |
isReachable(PathFindingNode start,
PathFindingNode end)
Basic BFS search
|
static boolean |
isReachable(PathFindingNode start,
PathFindingNode end,
int limit) |
public static PathFindingNode bfsClosestToPath(java.util.ArrayList<org.tribot.api2007.types.RSTile> path, PathFindingNode start)
public static PathFindingNode bfsClosestToPath(java.util.ArrayList<org.tribot.api2007.types.RSTile> path, PathFindingNode start, int limit)
public static boolean isReachable(PathFindingNode start, PathFindingNode end, int limit)
start - end - limit - limit tile search distance.public static boolean isReachable(PathFindingNode start, PathFindingNode end)
start - end - public static PathFindingNode getRandomTileNearby(PathFindingNode start)