Package zombie.iso.areas.isoregion.data
Class DataChunk
java.lang.Object
zombie.iso.areas.isoregion.data.DataChunk
public final 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)
int
getChunkX()
int
getChunkY()
protected int
getHashId()
IsoChunkRegion
getIsoChunkRegion(int int1, int int2, int int3)
long
getLastUpdateStamp()
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)
void
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
protected void
recalcRoofs()
protected void
recalculate()
void
save(java.nio.ByteBuffer byteBuffer)
boolean
selectedHasFlags(byte byte1)
protected void
setDirty(int int1)
void
setDirtyAllActive()
void
setLastUpdateStamp(long long1)
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)
byte
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
unsetDirtyAll()
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
-
-
Method Details
-
getHashId
protected int getHashId() -
getChunkX
public int getChunkX() -
getChunkY
public int getChunkY() -
getChunkRegions
protected java.util.ArrayList getChunkRegions(int int1) -
getLastUpdateStamp
public long getLastUpdateStamp() -
setLastUpdateStamp
public void setLastUpdateStamp(long long1) -
isDirty
protected boolean isDirty(int int1) -
setDirty
protected void setDirty(int int1) -
setDirtyAllActive
public void setDirtyAllActive() -
unsetDirtyAll
protected void unsetDirtyAll() -
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) -
save
public void save(java.nio.ByteBuffer byteBuffer) -
load
public 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 byte 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) -
getIsoChunkRegion
-
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()
-