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 intBLOCKEDstatic intFOV_EASTstatic intFOV_NORTHstatic intFOV_SOUTHstatic intFOV_WESTstatic intIMPENETRABLEstatic intNORTH_EAST_WALLstatic intNORTH_WEST_WALLstatic intOCCUPIEDstatic intSOLIDstatic intSOUTH_EAST_WALLstatic intSOUTH_WEST_WALLstatic intUNINITIALIZEDstatic intWALL_EASTstatic intWALL_NORTHstatic intWALL_SOUTHstatic intWALL_WEST
-
Constructor Summary
Constructors Constructor Description CollisionFlags()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheck(int flag, int checkFlag)static booleancheckWalkable(Direction dir, int startFlag, int endFLag, boolean ignoreStartBlocked)static booleancheckWalkable(Position start, Position end, boolean ignoreStartBlocked)static booleanisBlocked(int flag)static booleanisBlocked(Position flag)static StringtoString(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)
-
-