Class CollisionFlags
- java.lang.Object
-
- org.rspeer.game.movement.pathfinding.util.CollisionFlags
-
public class CollisionFlags extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
BLOCKED
static int
FOV_EAST
static int
FOV_NORTH
static int
FOV_SOUTH
static int
FOV_WEST
static int
IMPENETRABLE
static int
NORTH_EAST_WALL
static int
NORTH_WEST_WALL
static int
OCCUPIED
static int
SOLID
static int
SOUTH_EAST_WALL
static int
SOUTH_WEST_WALL
static int
UNINITIALIZED
static int
WALL_EAST
static int
WALL_NORTH
static int
WALL_SOUTH
static int
WALL_WEST
-
Constructor Summary
Constructors Constructor Description CollisionFlags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
isBlocked(Position flag)
static String
toString(int flag)
-
-
-
Field Detail
-
OCCUPIED
public static final int OCCUPIED
- See Also:
- Constant Field Values
-
BLOCKED
public static final int BLOCKED
- See Also:
- Constant Field Values
-
UNINITIALIZED
public static final int UNINITIALIZED
- See Also:
- Constant Field Values
-
IMPENETRABLE
public static final int IMPENETRABLE
- See Also:
- Constant Field Values
-
WALL_NORTH
public static final int WALL_NORTH
- See Also:
- Constant Field Values
-
WALL_EAST
public static final int WALL_EAST
- See Also:
- Constant Field Values
-
WALL_SOUTH
public static final int WALL_SOUTH
- See Also:
- Constant Field Values
-
WALL_WEST
public static final int WALL_WEST
- See Also:
- Constant Field Values
-
NORTH_WEST_WALL
public static final int NORTH_WEST_WALL
- See Also:
- Constant Field Values
-
NORTH_EAST_WALL
public static final int NORTH_EAST_WALL
- See Also:
- Constant Field Values
-
SOUTH_EAST_WALL
public static final int SOUTH_EAST_WALL
- See Also:
- Constant Field Values
-
SOUTH_WEST_WALL
public static final int SOUTH_WEST_WALL
- See Also:
- Constant Field Values
-
SOLID
public static final int SOLID
- See Also:
- Constant Field Values
-
FOV_NORTH
public static final int FOV_NORTH
- See Also:
- Constant Field Values
-
FOV_EAST
public static final int FOV_EAST
- See Also:
- Constant Field Values
-
FOV_SOUTH
public static final int FOV_SOUTH
- See Also:
- Constant Field Values
-
FOV_WEST
public static final int FOV_WEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
isBlocked
public static boolean isBlocked(Position flag)
-
isBlocked
public static boolean isBlocked(int flag)
-
checkWalkable
public static boolean checkWalkable(Position start, Position end, boolean ignoreStartBlocked)
-
checkWalkable
public static boolean checkWalkable(Direction dir, int startFlag, int endFLag, boolean ignoreStartBlocked)
-
check
public static boolean check(int flag, int checkFlag)
-
toString
public static String toString(int flag)
-
-