public class PathFinder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PathFinder.Path |
Modifier and Type | Field and Description |
---|---|
static int[] |
distance |
Constructor and Description |
---|
PathFinder() |
Modifier and Type | Method and Description |
---|---|
static void |
buildDistanceMap(int to,
boolean[] passable,
int limit) |
static PathFinder.Path |
find(int from,
int to,
boolean[] passable) |
static int |
getStep(int from,
int to,
boolean[] passable) |
static int |
getStepBack(int cur,
int from,
boolean[] passable) |
static void |
setMapSize(int width,
int height) |
public static void setMapSize(int width, int height)
public static PathFinder.Path find(int from, int to, boolean[] passable)
public static int getStep(int from, int to, boolean[] passable)
public static int getStepBack(int cur, int from, boolean[] passable)
public static void buildDistanceMap(int to, boolean[] passable, int limit)