Package zombie.iso
Class IsoChunk
java.lang.Object
zombie.iso.IsoChunk
public class IsoChunk
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIsoChunk.JobType -
Field Summary
Fields Modifier and Type Field Description static booleanbDoServerRequestsbooleanbFixed2xboolean[]bLightingNeverDonebooleanbLoadedFliesSound.ChunkDatacorpseDataBoundedQueueFloorBloodSplatsjava.util.ArrayListFloorBloodSplatsFadeIsoChunk.JobTypejobTypeboolean[]lightCheckstatic java.util.StackloadGridSquareLotHeaderlotheaderstatic intMAX_BLOOD_SPLATSlongmodificationTimeintnextSplatIndexbooleanokToLoadintrandomIDjava.util.ArrayListrefsstatic byte[][]renderByIndexlongrevisionjava.util.ArrayListroomLightsdoubleseenIsoGridSquare[][]squaresdoublevisitedintwxintwy -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidAddBlood(int wx, int wy)voidaddBloodSplat(float x, float y, float z, int Type)voidAddCorpses(int wx, int wy)voidBlam(int wx, int wy)voiddoLoadGridsquare()voiddoReuseGridsquares()static booleanFileExists(int wx, int wy)static java.lang.StringFix2x(java.lang.String tileName)static intFix2x(IsoGridSquare square, int spriteID)ErosionData.ChunkgetErosionData()IsoGridSquaregetGridSquare(int x, int y, int z)IsoRoomgetRoom(int roomID)booleanLoad(int wx, int wy)voidLoad(java.io.File inFile, boolean bDoSurrounds)voidloadInMainThread()voidloadInWorldStreamerThread()voidrecalcNeighboursNow()Deprecated.voidremoveFromWorld()voidresetForStore()static voidSafeRead(java.io.File inFile, ClientChunkRequest.Chunk ccrc)static voidSafeWrite(int wx, int wy, java.nio.ByteBuffer bb)voidSave(boolean bSaveQuit)voidSaveLoadedChunk(ClientChunkRequest.Chunk ccrc)voidSee()voidsetCache()voidsetSquare(int x, int y, int z, IsoGridSquare square)voidupdate()voidupdateBuildings()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bDoServerRequests
public static boolean bDoServerRequests -
wx
public int wx -
wy
public int wy -
squares
-
corpseData
-
jobType
-
seen
public double seen -
visited
public double visited -
lotheader
-
FloorBloodSplats
-
FloorBloodSplatsFade
public java.util.ArrayList FloorBloodSplatsFade -
MAX_BLOOD_SPLATS
public static final int MAX_BLOOD_SPLATS- See Also:
- Constant Field Values
-
nextSplatIndex
public int nextSplatIndex -
renderByIndex
public static final byte[][] renderByIndex -
refs
public java.util.ArrayList refs -
bLoaded
public boolean bLoaded -
okToLoad
public boolean okToLoad -
bFixed2x
public boolean bFixed2x -
lightCheck
public boolean[] lightCheck -
bLightingNeverDone
public boolean[] bLightingNeverDone -
roomLights
public java.util.ArrayList roomLights -
loadGridSquare
public static java.util.Stack loadGridSquare -
randomID
public int randomID -
revision
public long revision -
modificationTime
public long modificationTime
-
-
Constructor Details
-
IsoChunk
-
-
Method Details
-
addBloodSplat
public void addBloodSplat(float x, float y, float z, int Type) -
AddCorpses
public void AddCorpses(int wx, int wy) -
AddBlood
public void AddBlood(int wx, int wy) -
FileExists
public static boolean FileExists(int wx, int wy) -
Load
public boolean Load(int wx, int wy) -
loadInWorldStreamerThread
public void loadInWorldStreamerThread() -
loadInMainThread
public void loadInMainThread() -
recalcNeighboursNow
@Deprecated public void recalcNeighboursNow()Deprecated. -
updateBuildings
public void updateBuildings() -
update
public void update() -
setSquare
-
getGridSquare
-
getRoom
-
removeFromWorld
public void removeFromWorld() -
doReuseGridsquares
public void doReuseGridsquares() -
See
public void See() -
Load
public void Load(java.io.File inFile, boolean bDoSurrounds) throws java.io.IOException- Throws:
java.io.IOException
-
doLoadGridsquare
public void doLoadGridsquare() -
setCache
public void setCache() -
Save
public void Save(boolean bSaveQuit) throws java.io.IOException- Throws:
java.io.IOException
-
SafeWrite
public static void SafeWrite(int wx, int wy, java.nio.ByteBuffer bb) throws java.io.IOException- Throws:
java.io.IOException
-
SafeRead
public static void SafeRead(java.io.File inFile, ClientChunkRequest.Chunk ccrc) throws java.io.IOException- Throws:
java.io.IOException
-
SaveLoadedChunk
- Throws:
java.io.IOException
-
Blam
public void Blam(int wx, int wy) -
getErosionData
-
Fix2x
-
Fix2x
public static java.lang.String Fix2x(java.lang.String tileName) -
resetForStore
public void resetForStore()
-