Class ChunkRevisions

java.lang.Object
zombie.network.ChunkRevisions

public class ChunkRevisions
extends java.lang.Object
  • Field Details

    • USE_CHUNK_REVISIONS

      public static boolean USE_CHUNK_REVISIONS
    • instance

      public static ChunkRevisions instance
    • FileLock

      public java.lang.Object FileLock
    • UpdateArea

      public static int UpdateArea
    • chunks

      public ChunkRevisions.Chunk[][] 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

      public IsoPlayer[] lastRequestInit
    • updateTimer

      public OnceEvery updateTimer
    • executor

      public java.util.concurrent.ExecutorService executor
    • clientChunkRequest

      public ChunkRevisions.ClientChunkRevisionRequest clientChunkRequest
    • serverChunkRequest

      public java.util.ArrayList serverChunkRequest
  • Constructor Details

    • ChunkRevisions

      public ChunkRevisions()
  • Method Details

    • getChunk

      public ChunkRevisions.Chunk getChunk​(int int1, int int2)
    • revisionUp

      public void revisionUp​(IsoGridSquare square)
    • 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

      public void patchChunkIfNeeded​(IsoChunk chunk)
    • chunkRemovedFromWorld

      public void chunkRemovedFromWorld​(IsoChunk chunk)
    • 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

      public void requestCoopStartupChunkRevisions​(IsoPlayer player)
    • isCoopRequestComplete

      public boolean isCoopRequestComplete​(IsoPlayer player)
    • receiveChunkRevisionRequest

      public void receiveChunkRevisionRequest​(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)