Package zombie.network
Class ChunkRevisions
java.lang.Object
zombie.network.ChunkRevisions
public class ChunkRevisions
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChunkRevisions.Buffers
class
ChunkRevisions.Chunk
static class
ChunkRevisions.ChunkFile
static class
ChunkRevisions.ChunkRevisionFile
static class
ChunkRevisions.ChunkTable
static class
ChunkRevisions.ChunkTableEntry
static class
ChunkRevisions.ClientChunkRevisionRequest
static class
ChunkRevisions.DownloadFileFromServer
static class
ChunkRevisions.ServerChunkRevisionRequest
static class
ChunkRevisions.ServerChunkRevisionRequestInfo
static class
ChunkRevisions.UploadFileToClient
-
Field Summary
Fields Modifier and Type Field Description ChunkRevisions.Chunk[][]
chunks
ChunkRevisions.ClientChunkRevisionRequest
clientChunkRequest
java.util.concurrent.ExecutorService
executor
java.lang.Object
FileLock
int
height
static ChunkRevisions
instance
IsoPlayer[]
lastRequestInit
int[]
lastRequestX
int[]
lastRequestY
int
minX
int
minY
java.util.ArrayList
revisedChunks
java.util.ArrayList
revisedSquares
java.util.ArrayList
revisedSquares2
java.util.ArrayList
serverChunkRequest
static int
UpdateArea
OnceEvery
updateTimer
static boolean
USE_CHUNK_REVISIONS
int
width
-
Constructor Summary
Constructors Constructor Description ChunkRevisions()
-
Method Summary
Modifier and Type Method Description void
chunkRemovedFromWorld(IsoChunk chunk)
void
clientPacket(short short1, java.nio.ByteBuffer byteBuffer)
ChunkRevisions.Chunk
getChunk(int int1, int int2)
boolean
isCoopRequestComplete(IsoPlayer player)
void
loadChunkRevision(int int1, int int2)
void
patchChunkIfNeeded(IsoChunk chunk)
void
processRevisedSquares()
void
receiveChunkRevisionRequest(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
void
requestCoopStartupChunkRevisions(IsoPlayer player)
void
requestStartupChunkRevisions(int int1, int int2, int int3, int int4)
void
revisionUp(IsoGridSquare square)
void
serverPacket(short short1, java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
void
updateClient()
void
updateServer()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
USE_CHUNK_REVISIONS
public static boolean USE_CHUNK_REVISIONS -
instance
-
FileLock
public java.lang.Object FileLock -
UpdateArea
public static int UpdateArea -
chunks
-
minX
public int minX -
minY
public int minY -
width
public int width -
height
public int height -
revisedSquares
public java.util.ArrayList revisedSquares -
revisedSquares2
public java.util.ArrayList revisedSquares2 -
revisedChunks
public java.util.ArrayList revisedChunks -
lastRequestX
public int[] lastRequestX -
lastRequestY
public int[] lastRequestY -
lastRequestInit
-
updateTimer
-
executor
public java.util.concurrent.ExecutorService executor -
clientChunkRequest
-
serverChunkRequest
public java.util.ArrayList serverChunkRequest
-
-
Constructor Details
-
ChunkRevisions
public ChunkRevisions()
-
-
Method Details
-
getChunk
-
revisionUp
-
clientPacket
public void clientPacket(short short1, java.nio.ByteBuffer byteBuffer) -
serverPacket
public void serverPacket(short short1, java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
updateClient
public void updateClient() -
updateServer
public void updateServer() -
patchChunkIfNeeded
-
chunkRemovedFromWorld
-
processRevisedSquares
public void processRevisedSquares() -
loadChunkRevision
public void loadChunkRevision(int int1, int int2) -
requestStartupChunkRevisions
public void requestStartupChunkRevisions(int int1, int int2, int int3, int int4) -
requestCoopStartupChunkRevisions
-
isCoopRequestComplete
-
receiveChunkRevisionRequest
public void receiveChunkRevisionRequest(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
-