Package zombie.iso
Class IsoChunkMap
java.lang.Object
zombie.iso.IsoChunkMap
public final class IsoChunkMap
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.locks.ReentrantLock
bSettingChunk
static int
ChunkGridWidth
static int
ChunksPerWidth
protected IsoChunk[]
chunksSwapA
protected IsoChunk[]
chunksSwapB
static java.util.concurrent.ConcurrentLinkedQueue
chunkStore
static int
ChunkWidthInTiles
java.util.ArrayList
filenameServerRequests
boolean
ignore
static int
LEVELS
static int
MPWorldXA
static int
MPWorldYA
static int
MPWorldZA
int
PlayerID
static java.util.HashMap
SharedChunks
static int[]
SWorldX
static int[]
SWorldY
int
WorldX
static int
WorldXA
int
WorldY
static int
WorldYA
static int
WorldZA
-
Constructor Summary
Constructors Constructor Description IsoChunkMap(IsoCell cell)
-
Method Summary
Modifier and Type Method Description static void
CalcChunkWidth()
void
checkIntegrity()
void
checkIntegrityThread()
void
copy(IsoChunkMap chunkMap)
void
Dispose()
void
drawDebugChunkMap()
IsoChunk
getChunk(int int1, int int2)
IsoChunk
getChunkCurrent(int int1, int int2)
IsoChunk
getChunkForGridSquare(int int1, int int2)
IsoGridSquare
getGridSquare(int int1, int int2, int int3)
IsoGridSquare
getGridSquareDirect(int int1, int int2, int int3)
IsoRoom
getRoom(int int1)
int
getWidthInTiles()
int
getWorldXMaxTiles()
int
getWorldXMin()
int
getWorldXMinTiles()
int
getWorldYMaxTiles()
int
getWorldYMin()
int
getWorldYMinTiles()
void
LoadChunk(int int1, int int2, int int3, int int4)
IsoChunk
LoadChunkForLater(int int1, int int2, int int3, int int4)
void
processAllLoadGridSquare()
void
ProcessChunkPos(IsoGameCharacter gameCharacter)
void
renderBloodForChunks(int int1)
void
Save()
boolean
setChunkDirect(IsoChunk chunk, boolean boolean1)
void
setGridSquare(IsoGridSquare square, int int1, int int2, int int3)
void
setInitialPos(int int1, int int2)
static void
setWorldStartPos(int int1, int int2)
void
SwapChunkBuffers()
void
Unload()
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
LEVELS
public static final int LEVELS- See Also:
- Constant Field Values
-
ChunksPerWidth
public static final int ChunksPerWidth- See Also:
- Constant Field Values
-
MPWorldXA
public static int MPWorldXA -
MPWorldYA
public static int MPWorldYA -
MPWorldZA
public static int MPWorldZA -
WorldXA
public static int WorldXA -
WorldYA
public static int WorldYA -
WorldZA
public static int WorldZA -
SWorldX
public static final int[] SWorldX -
SWorldY
public static final int[] SWorldY -
chunkStore
public static final java.util.concurrent.ConcurrentLinkedQueue chunkStore -
bSettingChunk
public static final java.util.concurrent.locks.ReentrantLock bSettingChunk -
ChunkGridWidth
public static int ChunkGridWidth -
ChunkWidthInTiles
public static int ChunkWidthInTiles -
PlayerID
public int PlayerID -
ignore
public boolean ignore -
WorldX
public int WorldX -
WorldY
public int WorldY -
filenameServerRequests
public final java.util.ArrayList filenameServerRequests -
chunksSwapB
-
chunksSwapA
-
-
Constructor Details
-
IsoChunkMap
-
-
Method Details
-
CalcChunkWidth
public static void CalcChunkWidth() -
setWorldStartPos
public static void setWorldStartPos(int int1, int int2) -
Dispose
public void Dispose() -
setInitialPos
public void setInitialPos(int int1, int int2) -
processAllLoadGridSquare
public void processAllLoadGridSquare() -
update
public void update() -
checkIntegrity
public void checkIntegrity() -
checkIntegrityThread
public void checkIntegrityThread() -
LoadChunk
public void LoadChunk(int int1, int int2, int int3, int int4) -
LoadChunkForLater
-
getChunkForGridSquare
-
getChunkCurrent
-
setGridSquare
-
getGridSquare
-
getGridSquareDirect
-
getChunk
-
setChunkDirect
-
drawDebugChunkMap
public void drawDebugChunkMap() -
SwapChunkBuffers
public void SwapChunkBuffers() -
getWorldXMin
public int getWorldXMin() -
getWorldYMin
public int getWorldYMin() -
ProcessChunkPos
-
getRoom
-
getWidthInTiles
public int getWidthInTiles() -
getWorldXMinTiles
public int getWorldXMinTiles() -
getWorldYMinTiles
public int getWorldYMinTiles() -
getWorldXMaxTiles
public int getWorldXMaxTiles() -
getWorldYMaxTiles
public int getWorldYMaxTiles() -
Save
public void Save() -
renderBloodForChunks
public void renderBloodForChunks(int int1) -
copy
-
Unload
public void Unload()
-