Package zombie.iso.areas.isoregion
Class IsoRegions
java.lang.Object
zombie.iso.areas.isoregion.IsoRegions
public final class IsoRegions
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static byte
BIT_EMPTY
static byte
BIT_HAS_FLOOR
static byte
BIT_HAS_ROOF
static byte
BIT_PATH_WALL_N
static byte
BIT_PATH_WALL_W
static byte
BIT_STAIRCASE
static byte
BIT_WALL_N
static byte
BIT_WALL_W
static int
CELL_CHUNK_DIM
static int
CELL_DIM
static int
CHUNK_DIM
protected static int
CHUNK_LOAD_DIMENSIONS
static int
CHUNK_MAX_Z
static int
CHUNKS_DATA_PACKET_SIZE
protected static boolean
DEBUG_LOAD_ALL_CHUNKS
static byte
DIR_2D_MAX
static byte
DIR_2D_NW
static byte
DIR_BOT
static byte
DIR_E
static byte
DIR_MAX
static byte
DIR_N
static byte
DIR_NONE
static byte
DIR_S
static byte
DIR_TOP
static byte
DIR_W
static java.lang.String
FILE_DIR
static java.lang.String
FILE_EXT
static java.lang.String
FILE_PRE
static java.lang.String
FILE_SEP
protected static int
lastChunkX
protected static int
lastChunkY
static boolean
PRINT_D
static int
SINGLE_CHUNK_PACKET_SIZE
-
Constructor Summary
Constructors Constructor Description IsoRegions()
-
Method Summary
Modifier and Type Method Description protected static byte
calculateSquareFlags(IsoGridSquare square)
protected static void
forceRecalcSurroundingChunks()
static java.io.File
getChunkFile(int int1, int int2)
static IChunkRegion
getChunkRegion(int int1, int int2, int int3)
static DataChunk
getDataChunk(int int1, int int2)
protected static DataRoot
getDataRoot()
static java.io.File
getDirectory()
static java.io.File
getHeaderFile()
static IWorldRegion
getIsoWorldRegion(int int1, int int2, int int3)
static IsoRegionsLogger
getLogger()
static byte
GetOppositeDir(byte byte1)
protected static IsoRegionWorker
getRegionWorker()
static byte
getSquareFlags(int int1, int int2, int int3)
static int
hash(int int1, int int2)
static void
init()
static boolean
isDebugLoadAllChunks()
static void
log(java.lang.String string)
static void
log(java.lang.String string, Color color)
static void
receiveClientRequestFullDataChunks(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
receiveServerUpdatePacket(java.nio.ByteBuffer byteBuffer)
static void
reset()
static void
ResetAllDataDebug()
static void
setDebugLoadAllChunks(boolean boolean1)
static void
setPreviousFlags(IsoGridSquare square)
static void
squareChanged(IsoGridSquare square)
static void
squareChanged(IsoGridSquare square, boolean boolean1)
static void
update()
static void
warn(java.lang.String string)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
SINGLE_CHUNK_PACKET_SIZE
public static final int SINGLE_CHUNK_PACKET_SIZE- See Also:
- Constant Field Values
-
CHUNKS_DATA_PACKET_SIZE
public static final int CHUNKS_DATA_PACKET_SIZE- See Also:
- Constant Field Values
-
PRINT_D
public static boolean PRINT_D -
CELL_DIM
public static final int CELL_DIM- See Also:
- Constant Field Values
-
CELL_CHUNK_DIM
public static final int CELL_CHUNK_DIM- See Also:
- Constant Field Values
-
CHUNK_DIM
public static final int CHUNK_DIM- See Also:
- Constant Field Values
-
CHUNK_MAX_Z
public static final int CHUNK_MAX_Z- See Also:
- Constant Field Values
-
BIT_EMPTY
public static final byte BIT_EMPTY- See Also:
- Constant Field Values
-
BIT_WALL_N
public static final byte BIT_WALL_N- See Also:
- Constant Field Values
-
BIT_WALL_W
public static final byte BIT_WALL_W- See Also:
- Constant Field Values
-
BIT_PATH_WALL_N
public static final byte BIT_PATH_WALL_N- See Also:
- Constant Field Values
-
BIT_PATH_WALL_W
public static final byte BIT_PATH_WALL_W- See Also:
- Constant Field Values
-
BIT_HAS_FLOOR
public static final byte BIT_HAS_FLOOR- See Also:
- Constant Field Values
-
BIT_STAIRCASE
public static final byte BIT_STAIRCASE- See Also:
- Constant Field Values
-
BIT_HAS_ROOF
public static final byte BIT_HAS_ROOF- See Also:
- Constant Field Values
-
DIR_NONE
public static final byte DIR_NONE- See Also:
- Constant Field Values
-
DIR_N
public static final byte DIR_N- See Also:
- Constant Field Values
-
DIR_W
public static final byte DIR_W- See Also:
- Constant Field Values
-
DIR_2D_NW
public static final byte DIR_2D_NW- See Also:
- Constant Field Values
-
DIR_S
public static final byte DIR_S- See Also:
- Constant Field Values
-
DIR_E
public static final byte DIR_E- See Also:
- Constant Field Values
-
DIR_2D_MAX
public static final byte DIR_2D_MAX- See Also:
- Constant Field Values
-
DIR_TOP
public static final byte DIR_TOP- See Also:
- Constant Field Values
-
DIR_BOT
public static final byte DIR_BOT- See Also:
- Constant Field Values
-
DIR_MAX
public static final byte DIR_MAX- See Also:
- Constant Field Values
-
CHUNK_LOAD_DIMENSIONS
protected static final int CHUNK_LOAD_DIMENSIONS- See Also:
- Constant Field Values
-
DEBUG_LOAD_ALL_CHUNKS
protected static boolean DEBUG_LOAD_ALL_CHUNKS -
FILE_PRE
public static final java.lang.String FILE_PRE- See Also:
- Constant Field Values
-
FILE_SEP
public static final java.lang.String FILE_SEP- See Also:
- Constant Field Values
-
FILE_EXT
public static final java.lang.String FILE_EXT- See Also:
- Constant Field Values
-
FILE_DIR
public static final java.lang.String FILE_DIR- See Also:
- Constant Field Values
-
lastChunkX
protected static int lastChunkX -
lastChunkY
protected static int lastChunkY
-
-
Constructor Details
-
IsoRegions
public IsoRegions()
-
-
Method Details
-
getHeaderFile
public static java.io.File getHeaderFile() -
getDirectory
public static java.io.File getDirectory() -
getChunkFile
public static java.io.File getChunkFile(int int1, int int2) -
GetOppositeDir
public static byte GetOppositeDir(byte byte1) -
setDebugLoadAllChunks
public static void setDebugLoadAllChunks(boolean boolean1) -
isDebugLoadAllChunks
public static boolean isDebugLoadAllChunks() -
hash
public static int hash(int int1, int int2) -
getDataRoot
-
init
public static void init() -
getLogger
-
log
public static void log(java.lang.String string) -
log
-
warn
public static void warn(java.lang.String string) -
reset
public static void reset() -
receiveServerUpdatePacket
public static void receiveServerUpdatePacket(java.nio.ByteBuffer byteBuffer) -
receiveClientRequestFullDataChunks
public static void receiveClientRequestFullDataChunks(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
update
public static void update() -
forceRecalcSurroundingChunks
protected static void forceRecalcSurroundingChunks() -
getSquareFlags
public static byte getSquareFlags(int int1, int int2, int int3) -
getIsoWorldRegion
-
getDataChunk
-
getChunkRegion
-
ResetAllDataDebug
public static void ResetAllDataDebug() -
setPreviousFlags
-
squareChanged
-
squareChanged
-
calculateSquareFlags
-
getRegionWorker
-