Package zombie.vehicles
Class PolygonalMap2
java.lang.Object
zombie.vehicles.PolygonalMap2
public final class PolygonalMap2
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PolygonalMap2.IPathfinder
static class
PolygonalMap2.LiangBarsky
static class
PolygonalMap2.Path
static class
PolygonalMap2.Point
static class
PolygonalMap2.VehiclePoly
-
Field Summary
Fields Modifier and Type Field Description static boolean
CLOSE_TO_WALLS
static boolean
COLLIDE_BEVEL
static boolean
COLLIDE_CLIPPER
static int
CXN_FLAG_CAN_PATH
static int
CXN_FLAG_THUMP
static PolygonalMap2
instance
static int
LCC_ALLOW_ON_EDGE
static int
LCC_CHECK_COST
static int
LCC_CLOSE_TO_WALLS
static int
LCC_IGNORE_DOORS
static int
LCC_RENDER
static int
LCC_ZERO
static int
NODE_FLAG_CRAWL
static int
NODE_FLAG_CRAWL_INTERIOR
static int
NODE_FLAG_IN_CHUNK_DATA
static int
NODE_FLAG_KEEP
static int
NODE_FLAG_PERIMETER
static boolean
PATHS_UNDER_VEHICLES
static float
RADIUS
-
Constructor Summary
Constructors Constructor Description PolygonalMap2()
-
Method Summary
Modifier and Type Method Description void
addChunkToWorld(IsoChunk chunk)
zombie.vehicles.PolygonalMap2.PathFindRequest
addRequest(PolygonalMap2.IPathfinder iPathfinder, Mover mover, float float1, float float2, float float3, float float4, float float5, float float6)
void
addVehicleToWorld(BaseVehicle baseVehicle)
void
cancelRequest(Mover mover)
boolean
canStandAt(float float1, float float2, int int1, IsoMovingObject movingObject, boolean boolean1, boolean boolean2)
boolean
canStandAt(float float1, float float2, int int1, BaseVehicle baseVehicle, int int2)
Vector2
getCollidepoint(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject, int int2)
java.util.ArrayList
getPointInLine(float float1, float float2, float float3, float float4, int int1)
void
init(IsoMetaGrid metaGrid)
boolean
intersectLineWithVehicle(float float1, float float2, float float3, float float4, BaseVehicle baseVehicle, Vector2 vector2)
boolean
lineClearCollide(float float1, float float2, float float3, float float4, int int1)
boolean
lineClearCollide(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject)
boolean
lineClearCollide(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject, boolean boolean1, boolean boolean2)
boolean
lineClearCollide(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject, int int2)
void
removeChunkFromWorld(IsoChunk chunk)
void
removeVehicleFromWorld(BaseVehicle baseVehicle)
void
render()
Vector2f
resolveCollision(IsoGameCharacter gameCharacter, float float1, float float2, Vector2f vector2f)
void
squareChanged(IsoGridSquare square)
void
stop()
void
updateMain()
void
updateThread()
void
updateVehicle(BaseVehicle baseVehicle)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
RADIUS
public static final float RADIUS- See Also:
- Constant Field Values
-
CLOSE_TO_WALLS
public static final boolean CLOSE_TO_WALLS- See Also:
- Constant Field Values
-
PATHS_UNDER_VEHICLES
public static final boolean PATHS_UNDER_VEHICLES- See Also:
- Constant Field Values
-
COLLIDE_CLIPPER
public static final boolean COLLIDE_CLIPPER- See Also:
- Constant Field Values
-
COLLIDE_BEVEL
public static final boolean COLLIDE_BEVEL- See Also:
- Constant Field Values
-
CXN_FLAG_CAN_PATH
public static final int CXN_FLAG_CAN_PATH- See Also:
- Constant Field Values
-
CXN_FLAG_THUMP
public static final int CXN_FLAG_THUMP- See Also:
- Constant Field Values
-
NODE_FLAG_CRAWL
public static final int NODE_FLAG_CRAWL- See Also:
- Constant Field Values
-
NODE_FLAG_CRAWL_INTERIOR
public static final int NODE_FLAG_CRAWL_INTERIOR- See Also:
- Constant Field Values
-
NODE_FLAG_IN_CHUNK_DATA
public static final int NODE_FLAG_IN_CHUNK_DATA- See Also:
- Constant Field Values
-
NODE_FLAG_PERIMETER
public static final int NODE_FLAG_PERIMETER- See Also:
- Constant Field Values
-
NODE_FLAG_KEEP
public static final int NODE_FLAG_KEEP- See Also:
- Constant Field Values
-
instance
-
LCC_ZERO
public static final int LCC_ZERO- See Also:
- Constant Field Values
-
LCC_IGNORE_DOORS
public static final int LCC_IGNORE_DOORS- See Also:
- Constant Field Values
-
LCC_CLOSE_TO_WALLS
public static final int LCC_CLOSE_TO_WALLS- See Also:
- Constant Field Values
-
LCC_CHECK_COST
public static final int LCC_CHECK_COST- See Also:
- Constant Field Values
-
LCC_RENDER
public static final int LCC_RENDER- See Also:
- Constant Field Values
-
LCC_ALLOW_ON_EDGE
public static final int LCC_ALLOW_ON_EDGE- See Also:
- Constant Field Values
-
-
Constructor Details
-
PolygonalMap2
public PolygonalMap2()
-
-
Method Details
-
render
public void render() -
squareChanged
-
addChunkToWorld
-
removeChunkFromWorld
-
addVehicleToWorld
-
updateVehicle
-
removeVehicleFromWorld
-
init
-
stop
public void stop() -
updateMain
public void updateMain() -
updateThread
public void updateThread() -
addRequest
public zombie.vehicles.PolygonalMap2.PathFindRequest addRequest(PolygonalMap2.IPathfinder iPathfinder, Mover mover, float float1, float float2, float float3, float float4, float float5, float float6) -
cancelRequest
-
getPointInLine
public java.util.ArrayList getPointInLine(float float1, float float2, float float3, float float4, int int1) -
lineClearCollide
public boolean lineClearCollide(float float1, float float2, float float3, float float4, int int1) -
lineClearCollide
public boolean lineClearCollide(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject) -
lineClearCollide
public boolean lineClearCollide(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject, boolean boolean1, boolean boolean2) -
lineClearCollide
public boolean lineClearCollide(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject, int int2) -
getCollidepoint
public Vector2 getCollidepoint(float float1, float float2, float float3, float float4, int int1, IsoMovingObject movingObject, int int2) -
canStandAt
public boolean canStandAt(float float1, float float2, int int1, IsoMovingObject movingObject, boolean boolean1, boolean boolean2) -
canStandAt
-
intersectLineWithVehicle
public boolean intersectLineWithVehicle(float float1, float float2, float float3, float float4, BaseVehicle baseVehicle, Vector2 vector2) -
resolveCollision
public Vector2f resolveCollision(IsoGameCharacter gameCharacter, float float1, float float2, Vector2f vector2f)
-