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.Stack
chunkStore
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
copy(IsoChunkMap from)
void
Dispose()
static void
DoSave()
void
drawDebugChunkMap()
IsoChunk
getChunk(int x, int y)
IsoChunk
getChunkCurrent(int x, int y)
IsoChunk
getChunkForGridSquare(int x, int y)
IsoGridSquare
getGridSquare(int x, int y, int z)
IsoGridSquare
getGridSquareDirect(int x, int y, int z)
IsoRoom
getRoom(int iD)
int
getWidthInTiles()
int
getWorldXMaxTiles()
int
getWorldXMin()
int
getWorldXMinTiles()
int
getWorldYMaxTiles()
int
getWorldYMin()
int
getWorldYMinTiles()
void
LoadChunk(int wx, int wy, int x, int y)
void
LoadChunkForLater(int wx, int wy, int x, int y)
void
LoadDown()
void
LoadLeft()
void
LoadRight()
void
LoadUp()
void
processAllLoadGridSquare()
void
ProcessChunkPos(IsoGameCharacter chr)
void
renderBloodForChunks(int zza)
void
Right()
void
Save()
void
setChunk(int x, int y, IsoChunk c)
boolean
setChunkDirect(IsoChunk c, boolean bRequireLock)
void
setGridSquare(IsoGridSquare square, int x, int y, int z)
void
setGridSquare(IsoGridSquare square, int wx, int wy, int x, int y, int z)
void
setInitialPos(int wx, int wy)
static void
setWorldStartPos(int x, int y)
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 -
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.Stack 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 x, int y) -
setInitialPos
public void setInitialPos(int wx, int wy) -
processAllLoadGridSquare
public void processAllLoadGridSquare() -
update
public void update() -
checkIntegrity
public void checkIntegrity() -
checkIntegrityThread
public void checkIntegrityThread() -
LoadChunk
public void LoadChunk(int wx, int wy, int x, int y) -
LoadChunkForLater
public void LoadChunkForLater(int wx, int wy, int x, int y) -
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 zza) -
copy
-
Unload
public void Unload()
-