Package zombie
Class MapCollisionData
java.lang.Object
zombie.MapCollisionData
public class MapCollisionData
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapCollisionData.Cell
static class
MapCollisionData.Chunk
static interface
MapCollisionData.IPathResult
-
Field Summary
Fields Modifier and Type Field Description static byte
BIT_ROOM
static byte
BIT_SOLID
static byte
BIT_WALLN
static byte
BIT_WALLW
static byte
BIT_WATER
static MapCollisionData
instance
java.lang.Object
renderLock
-
Constructor Summary
Constructors Constructor Description MapCollisionData()
-
Method Summary
Modifier and Type Method Description void
_renderDebugOverhead2(float zoom, int offx, int offy, float xPos, float yPos, int draww, int drawh)
void
addChunkToWorld(IsoChunk chunk)
void
findPath(int sx, int sy, int ex, int ey, MapCollisionData.IPathResult result)
void
findPath2(int sx, int sy, int ex, int ey, MapCollisionData.IPathResult result)
int
getBits(int x, int y)
MapCollisionData.Cell
getCell(int x, int y)
MapCollisionData.Cell
getCellFromChunkPos(int wx, int wy)
MapCollisionData.Cell
getCellFromWorldPos(int x, int y)
int
getChunkType(int wx, int wy)
void
init(IsoMetaGrid metaGrid)
boolean
isBlocked(int x, int y, byte blockedBits)
boolean
isBlocked(int x0, int y0, int x1, int y1, byte blockedBits)
boolean
isBlockedN(int bits)
boolean
isBlockedW(int bits)
boolean
isChunkBlocked(int wx, int wy, int blockedBits)
boolean
isRoom(int bits)
boolean
isSolid(int bits)
boolean
isWater(int bits)
void
notifyThread()
void
removeChunkFromWorld(IsoChunk chunk)
void
renderDebugOverhead2(float zoom, int offx, int offy, float xPos, float yPos, int draww, int drawh)
void
save()
void
squareChanged(IsoGridSquare sq)
void
start()
void
stop()
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
BIT_SOLID
public static final byte BIT_SOLID- See Also:
- Constant Field Values
-
BIT_WALLN
public static final byte BIT_WALLN- See Also:
- Constant Field Values
-
BIT_WALLW
public static final byte BIT_WALLW- See Also:
- Constant Field Values
-
BIT_WATER
public static final byte BIT_WATER- See Also:
- Constant Field Values
-
BIT_ROOM
public static final byte BIT_ROOM- See Also:
- Constant Field Values
-
renderLock
public final java.lang.Object renderLock
-
-
Constructor Details
-
MapCollisionData
public MapCollisionData()
-
-
Method Details
-
init
-
start
public void start() -
getCell
-
getCellFromWorldPos
-
getCellFromChunkPos
-
getBits
public int getBits(int x, int y) -
isSolid
public final boolean isSolid(int bits) -
isBlockedN
public final boolean isBlockedN(int bits) -
isBlockedW
public final boolean isBlockedW(int bits) -
isWater
public final boolean isWater(int bits) -
isRoom
public final boolean isRoom(int bits) -
isBlocked
public boolean isBlocked(int x, int y, byte blockedBits) -
isBlocked
public boolean isBlocked(int x0, int y0, int x1, int y1, byte blockedBits) -
getChunkType
public int getChunkType(int wx, int wy) -
isChunkBlocked
public boolean isChunkBlocked(int wx, int wy, int blockedBits) -
renderDebugOverhead2
public void renderDebugOverhead2(float zoom, int offx, int offy, float xPos, float yPos, int draww, int drawh) -
_renderDebugOverhead2
public void _renderDebugOverhead2(float zoom, int offx, int offy, float xPos, float yPos, int draww, int drawh) -
addChunkToWorld
-
removeChunkFromWorld
-
squareChanged
-
findPath
-
findPath2
-
update
public void update() -
notifyThread
public void notifyThread() -
save
public void save() -
stop
public void stop()
-