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 byteBIT_EMPTYstatic byteBIT_HAS_FLOORstatic byteBIT_HAS_ROOFstatic byteBIT_PATH_WALL_Nstatic byteBIT_PATH_WALL_Wstatic byteBIT_STAIRCASEstatic byteBIT_WALL_Nstatic byteBIT_WALL_Wstatic intCELL_CHUNK_DIMstatic intCELL_DIMstatic intCHUNK_DIMprotected static intCHUNK_LOAD_DIMENSIONSstatic intCHUNK_MAX_Zprotected static booleanDEBUG_LOAD_ALL_CHUNKSstatic byteDIR_2D_MAXstatic byteDIR_2D_NWstatic byteDIR_BOTstatic byteDIR_Estatic byteDIR_MAXstatic byteDIR_Nstatic byteDIR_NONEstatic byteDIR_Sstatic byteDIR_TOPstatic byteDIR_Wstatic java.lang.StringFILE_DIRstatic java.lang.StringFILE_EXTstatic java.lang.StringFILE_PREstatic java.lang.StringFILE_SEPprotected static intlastChunkXprotected static intlastChunkYstatic booleanPRINT_D -
Constructor Summary
Constructors Constructor Description IsoRegion() -
Method Summary
Modifier and Type Method Description protected static bytecalculateSquareFlags(IsoGridSquare square)static ChunkRegiongetChunkRegion(int int1, int int2, int int3)static DataChunkgetDataChunk(int int1, int int2)static MasterRegiongetMasterRegion(int int1, int int2, int int3)static byteGetOppositeDir(byte byte1)static bytegetSquareFlags(int int1, int int2, int int3)static booleanHasFlags(byte byte1, byte byte2)static inthash(int int1, int int2)static voidinit()static booleanisDebugLoadAllChunks()static voidreceiveClientRequestFullDataChunks(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)static voidreceiveServerUpdatePacket(java.nio.ByteBuffer byteBuffer)static voidreset()static voidResetAllDataDebug()static voidsetDebugLoadAllChunks(boolean boolean1)static voidsetPreviousFlags(IsoGridSquare square)static voidsquareChanged(IsoGridSquare square)static voidsquareChanged(IsoGridSquare square, boolean boolean1)static voidupdate()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
-