Package zombie.iso.areas.isoregion
Class DataChunk
java.lang.Object
zombie.iso.areas.isoregion.DataChunk
public class DataChunk
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected int
highestZ
protected long
lastUpdateStamp
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected java.util.ArrayList
getChunkRegions(int int1)
protected int
getChunkX()
protected int
getChunkY()
protected int
getHashId()
ChunkRegion
getRegion(int int1, int int2, int int3)
byte
getSquare(int int1, int int2, int int3)
byte
getSquare(int int1, int int2, int int3, boolean boolean1)
protected void
interConnect()
protected boolean
isDirty(int int1)
protected void
link(DataChunk dataChunk, DataChunk dataChunk2, DataChunk dataChunk3, DataChunk dataChunk4)
protected void
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
protected static void
readChunkDataIntoBuffer(IsoChunk chunk, java.nio.ByteBuffer byteBuffer)
protected void
recalcRoofs()
protected void
recalculate()
protected void
save(java.nio.ByteBuffer byteBuffer)
boolean
selectedHasFlags(byte byte1)
protected void
setDirty(int int1)
protected void
setDirtyAllActive()
protected byte
setOrAddSquare(int int1, int int2, int int3, byte byte1)
protected byte
setOrAddSquare(int int1, int int2, int int3, byte byte1, boolean boolean1)
void
setRegion(int int1, int int2, int int3, byte byte1)
void
setSelectedFlags(int int1, int int2, int int3)
protected void
squareAddFlags(int int1, int int2, int int3, byte byte1)
protected boolean
squareCanConnect(int int1, int int2, int int3, byte byte1)
int
squareGetFlags(int int1, int int2, int int3)
protected boolean
squareHasFlags(int int1, int int2, int int3, byte byte1)
protected void
squareRemoveFlags(int int1, int int2, int int3, byte byte1)
protected void
unsetDirtyAndFloodAll()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
highestZ
protected int highestZ -
lastUpdateStamp
protected long lastUpdateStamp
-
-
Constructor Details
-
DataChunk
-
DataChunk
protected DataChunk(int int1, int int2, int int3) -
DataChunk
-
DataChunk
-
-
Method Details
-
getHashId
protected int getHashId() -
getChunkX
protected int getChunkX() -
getChunkY
protected int getChunkY() -
getChunkRegions
protected java.util.ArrayList getChunkRegions(int int1) -
isDirty
protected boolean isDirty(int int1) -
setDirty
protected void setDirty(int int1) -
setDirtyAllActive
protected void setDirtyAllActive() -
unsetDirtyAndFloodAll
protected void unsetDirtyAndFloodAll() -
getSquare
public byte getSquare(int int1, int int2, int int3) -
getSquare
public byte getSquare(int int1, int int2, int int3, boolean boolean1) -
setOrAddSquare
protected byte setOrAddSquare(int int1, int int2, int int3, byte byte1) -
setOrAddSquare
protected byte setOrAddSquare(int int1, int int2, int int3, byte byte1, boolean boolean1) -
readChunkDataIntoBuffer
-
save
protected void save(java.nio.ByteBuffer byteBuffer) -
load
protected void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) -
setSelectedFlags
public void setSelectedFlags(int int1, int int2, int int3) -
selectedHasFlags
public boolean selectedHasFlags(byte byte1) -
squareHasFlags
protected boolean squareHasFlags(int int1, int int2, int int3, byte byte1) -
squareGetFlags
public int squareGetFlags(int int1, int int2, int int3) -
squareAddFlags
protected void squareAddFlags(int int1, int int2, int int3, byte byte1) -
squareRemoveFlags
protected void squareRemoveFlags(int int1, int int2, int int3, byte byte1) -
squareCanConnect
protected boolean squareCanConnect(int int1, int int2, int int3, byte byte1) -
getRegion
-
setRegion
public void setRegion(int int1, int int2, int int3, byte byte1) -
recalculate
protected void recalculate() -
link
-
interConnect
protected void interConnect() -
recalcRoofs
protected void recalcRoofs()
-