Package zombie.iso.areas.isoregion
Class IsoRegion
java.lang.Object
zombie.iso.areas.isoregion.IsoRegion
public class IsoRegion
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
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
-
Constructor Summary
Constructors Constructor Description IsoRegion()
-
Method Summary
Modifier and Type Method Description protected static byte
calculateSquareFlags(IsoGridSquare square)
static ChunkRegion
getChunkRegion(int int1, int int2, int int3)
static DataChunk
getDataChunk(int int1, int int2)
static MasterRegion
getMasterRegion(int int1, int int2, int int3)
static byte
GetOppositeDir(byte byte1)
static byte
getSquareFlags(int int1, int int2, int int3)
static boolean
HasFlags(byte byte1, byte byte2)
static int
hash(int int1, int int2)
static void
init()
static boolean
isDebugLoadAllChunks()
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()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
-
IsoRegion
public IsoRegion()
-
-
Method Details
-
HasFlags
public static boolean HasFlags(byte byte1, byte byte2) -
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) -
init
public static void init() -
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() -
getSquareFlags
public static byte getSquareFlags(int int1, int int2, int int3) -
getMasterRegion
-
getDataChunk
-
getChunkRegion
-
ResetAllDataDebug
public static void ResetAllDataDebug() -
setPreviousFlags
-
squareChanged
-
squareChanged
-
calculateSquareFlags
-