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 inthighestZprotected longlastUpdateStamp -
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected java.util.ArrayListgetChunkRegions(int int1)protected intgetChunkX()protected intgetChunkY()protected intgetHashId()ChunkRegiongetRegion(int int1, int int2, int int3)bytegetSquare(int int1, int int2, int int3)bytegetSquare(int int1, int int2, int int3, boolean boolean1)protected voidinterConnect()protected booleanisDirty(int int1)protected voidlink(DataChunk dataChunk, DataChunk dataChunk2, DataChunk dataChunk3, DataChunk dataChunk4)protected voidload(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)protected static voidreadChunkDataIntoBuffer(IsoChunk chunk, java.nio.ByteBuffer byteBuffer)protected voidrecalcRoofs()protected voidrecalculate()protected voidsave(java.nio.ByteBuffer byteBuffer)booleanselectedHasFlags(byte byte1)protected voidsetDirty(int int1)protected voidsetDirtyAllActive()protected bytesetOrAddSquare(int int1, int int2, int int3, byte byte1)protected bytesetOrAddSquare(int int1, int int2, int int3, byte byte1, boolean boolean1)voidsetRegion(int int1, int int2, int int3, byte byte1)voidsetSelectedFlags(int int1, int int2, int int3)protected voidsquareAddFlags(int int1, int int2, int int3, byte byte1)protected booleansquareCanConnect(int int1, int int2, int int3, byte byte1)intsquareGetFlags(int int1, int int2, int int3)protected booleansquareHasFlags(int int1, int int2, int int3, byte byte1)protected voidsquareRemoveFlags(int int1, int int2, int int3, byte byte1)protected voidunsetDirtyAndFloodAll()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()
-