Package zombie.iso.areas.isoregion
Class IsoRegionWorker
java.lang.Object
zombie.iso.areas.isoregion.IsoRegionWorker
public class IsoRegionWorker
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static intCHUNKS_DATA_PACKET_SIZEprotected static java.util.concurrent.atomic.AtomicBooleanisRequestingBufferSwapprotected static intSINGLE_CHUNK_PACKET_SIZE -
Constructor Summary
Constructors Modifier Constructor Description protectedIsoRegionWorker() -
Method Summary
Modifier and Type Method Description protected voidaddDebugResetJob()protected voidaddSquareChangedJob(int int1, int int2, int int3, boolean boolean1, byte byte1)protected voidApplyChunkChanges()protected voidApplyChunkChanges(boolean boolean1)protected voidcreate()protected static voidDequeueDirtyMasterRegion(MasterRegion masterRegion)protected static voidEnqueueDirtyChunk(DataChunk dataChunk)protected static voidEnqueueDirtyMasterRegion(MasterRegion masterRegion)protected voidEnqueueJob(RegionJob regionJob)protected java.io.FilegetChunkFile(int int1, int int2)protected java.io.FilegetDirectory()protected java.io.FilegetHeaderFile()protected DataRootgetRootBuffer()protected voidload()protected voidreadClientRequestFullUpdatePacket(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)protected voidreadServerUpdatePacket(java.nio.ByteBuffer byteBuffer)protected voidreadSurroundingChunks(int int1, int int2, int int3, boolean boolean1)protected voidsetRootBuffer(DataRoot dataRoot)protected voidstop()protected voidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
isRequestingBufferSwap
protected static java.util.concurrent.atomic.AtomicBoolean isRequestingBufferSwap -
SINGLE_CHUNK_PACKET_SIZE
protected static final int SINGLE_CHUNK_PACKET_SIZE- See Also:
- Constant Field Values
-
CHUNKS_DATA_PACKET_SIZE
protected static final int CHUNKS_DATA_PACKET_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
IsoRegionWorker
protected IsoRegionWorker()
-
-
Method Details
-
create
protected void create() -
stop
protected void stop() -
EnqueueJob
-
ApplyChunkChanges
protected void ApplyChunkChanges() -
ApplyChunkChanges
protected void ApplyChunkChanges(boolean boolean1) -
EnqueueDirtyChunk
-
EnqueueDirtyMasterRegion
-
DequeueDirtyMasterRegion
-
getDirectory
protected java.io.File getDirectory() -
getChunkFile
protected java.io.File getChunkFile(int int1, int int2) -
getHeaderFile
protected java.io.File getHeaderFile() -
getRootBuffer
-
setRootBuffer
-
load
protected void load() -
update
protected void update() -
readServerUpdatePacket
protected void readServerUpdatePacket(java.nio.ByteBuffer byteBuffer) -
readClientRequestFullUpdatePacket
protected void readClientRequestFullUpdatePacket(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
addDebugResetJob
protected void addDebugResetJob() -
addSquareChangedJob
protected void addSquareChangedJob(int int1, int int2, int int3, boolean boolean1, byte byte1) -
readSurroundingChunks
protected void readSurroundingChunks(int int1, int int2, int int3, boolean boolean1)
-