Class CollisionFlags
java.lang.Object
org.rspeer.game.movement.pathfinding.util.CollisionFlags
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check
(int flag, int checkFlag) static boolean
checkWalkable
(Direction dir, int startFlag, int endFLag, boolean ignoreStartBlocked) static boolean
checkWalkable
(Position start, Position end, boolean ignoreStartBlocked) static boolean
isBlocked
(int flag) static boolean
static String
toString
(int flag)
-
Field Details
-
OCCUPIED
public static final int OCCUPIED- See Also:
-
BLOCKED
public static final int BLOCKED- See Also:
-
UNINITIALIZED
public static final int UNINITIALIZED- See Also:
-
IMPENETRABLE
public static final int IMPENETRABLE- See Also:
-
WALL_NORTH
public static final int WALL_NORTH- See Also:
-
WALL_EAST
public static final int WALL_EAST- See Also:
-
WALL_SOUTH
public static final int WALL_SOUTH- See Also:
-
WALL_WEST
public static final int WALL_WEST- See Also:
-
NORTH_WEST_WALL
public static final int NORTH_WEST_WALL- See Also:
-
NORTH_EAST_WALL
public static final int NORTH_EAST_WALL- See Also:
-
SOUTH_EAST_WALL
public static final int SOUTH_EAST_WALL- See Also:
-
SOUTH_WEST_WALL
public static final int SOUTH_WEST_WALL- See Also:
-
SOLID
public static final int SOLID- See Also:
-
FOV_NORTH
public static final int FOV_NORTH- See Also:
-
FOV_EAST
public static final int FOV_EAST- See Also:
-
FOV_SOUTH
public static final int FOV_SOUTH- See Also:
-
FOV_WEST
public static final int FOV_WEST- See Also:
-
-
Constructor Details
-
CollisionFlags
public CollisionFlags()
-
-
Method Details
-
isBlocked
-
isBlocked
public static boolean isBlocked(int flag) -
checkWalkable
-
checkWalkable
public static boolean checkWalkable(Direction dir, int startFlag, int endFLag, boolean ignoreStartBlocked) -
check
public static boolean check(int flag, int checkFlag) -
toString
-