Package zombie.iso
Class IsoChunkMap
java.lang.Object
zombie.iso.IsoChunkMap
public class IsoChunkMap
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.locks.ReentrantLock
bSettingChunk
static java.util.concurrent.locks.ReentrantLock
bSettingChunkLighting
static int
ChunkDiv
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
protected static ColorInfo
inf
static int
MPWorldXA
static int
MPWorldYA
static int
MPWorldZA
int
PlayerID
static java.util.HashMap
SharedChunks
static int
StartChunkGridWidth
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
checkVehicles()
void
copy(IsoChunkMap chunkMap)
void
Dispose()
static void
DoSave()
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)
void
LoadChunkForLater(int int1, int int2, int int3, int int4)
void
LoadDown()
void
LoadLeft()
void
LoadRight()
void
LoadUp()
void
processAllLoadGridSquare()
void
ProcessChunkPos(IsoGameCharacter gameCharacter)
void
renderBloodForChunks(int int1)
void
Right()
void
Save()
void
setChunk(int int1, int int2, IsoChunk chunk)
boolean
setChunkDirect(IsoChunk chunk, boolean boolean1)
void
setGridSquare(IsoGridSquare square, int int1, int int2, int int3)
void
setGridSquare(IsoGridSquare square, int int1, int int2, int int3, int int4, int int5)
void
setInitialPos(int int1, int int2)
static void
setWorldStartPos(int int1, int int2)
void
SwapChunkBuffers()
void
Unload()
void
update()
void
UpdateCellCache()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ChunkDiv
public static int ChunkDiv -
ChunksPerWidth
public static final int ChunksPerWidth- See Also:
- Constant Field Values
-
StartChunkGridWidth
public static int StartChunkGridWidth -
ChunkGridWidth
public static int ChunkGridWidth -
MPWorldXA
public static int MPWorldXA -
MPWorldYA
public static int MPWorldYA -
MPWorldZA
public static int MPWorldZA -
ChunkWidthInTiles
public static int ChunkWidthInTiles -
PlayerID
public int PlayerID -
ignore
public boolean ignore -
WorldXA
public static int WorldXA -
WorldYA
public static int WorldYA -
WorldZA
public static int WorldZA -
SWorldX
public static int[] SWorldX -
WorldX
public int WorldX -
WorldY
public int WorldY -
SWorldY
public static int[] SWorldY -
chunksSwapB
-
chunksSwapA
-
chunkStore
public static java.util.concurrent.ConcurrentLinkedQueue chunkStore -
bSettingChunk
public static java.util.concurrent.locks.ReentrantLock bSettingChunk -
bSettingChunkLighting
public static java.util.concurrent.locks.ReentrantLock bSettingChunkLighting -
filenameServerRequests
public java.util.ArrayList filenameServerRequests -
inf
-
-
Constructor Details
-
IsoChunkMap
-
-
Method Details
-
CalcChunkWidth
public static void CalcChunkWidth() -
Dispose
public void Dispose() -
setWorldStartPos
public static void setWorldStartPos(int int1, int int2) -
setInitialPos
public void setInitialPos(int int1, int int2) -
processAllLoadGridSquare
public void processAllLoadGridSquare() -
update
public void update() -
checkVehicles
public void checkVehicles() -
checkIntegrity
public void checkIntegrity() -
checkIntegrityThread
public void checkIntegrityThread() -
LoadChunk
public void LoadChunk(int int1, int int2, int int3, int int4) -
LoadChunkForLater
public void LoadChunkForLater(int int1, int int2, int int3, int int4) -
getChunkForGridSquare
-
setGridSquare
-
getChunkCurrent
-
setGridSquare
-
getGridSquare
-
getGridSquareDirect
-
getChunk
-
setChunk
-
setChunkDirect
-
drawDebugChunkMap
public void drawDebugChunkMap() -
LoadLeft
public void LoadLeft() -
SwapChunkBuffers
public void SwapChunkBuffers() -
LoadRight
public void LoadRight() -
LoadUp
public void LoadUp() -
LoadDown
public void LoadDown() -
UpdateCellCache
public void UpdateCellCache() -
Right
public void Right() -
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() -
DoSave
public static void DoSave() -
renderBloodForChunks
public void renderBloodForChunks(int int1) -
copy
-
Unload
public void Unload()
-