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.ArrayListFloorBloodSplatsFadelonghashCodeObjectsIsoChunk.JobTypejobTypeboolean[]lightCheckbooleanloadedPhysicsstatic java.util.concurrent.ConcurrentLinkedQueueloadGridSquareintlootRespawnHourLotHeaderlotheaderstatic intMAX_BLOOD_SPLATSprotected static intMAX_SHAPESintmaxLevellongmodificationTimeIsoChunknextintnextSplatIndexintObjectsSyncCountprotected booleanphysicsCheckintrandomIDjava.util.ArrayListrefsstatic byte[][]renderByIndexlongrevisionjava.util.ArrayListroomLightsjava.util.ArrayListSoundListIsoGridSquare[][]squaresjava.util.ArrayListvehiclesintwxintwy -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidAddBlood(int int1, int int2)voidaddBloodSplat(float float1, float float2, float float3, int int1)voidAddCorpses(int int1, int int2)static voidaddFromCheckedVehicles(BaseVehicle baseVehicle)voidaddGeneratorPos(int int1, int int2, int int3)voidaddRandomCarCrash(IsoMetaGrid.Zone zone, boolean boolean1)voidAddVehicles()voidBlam(int int1, int int2)booleancanAddRandomCarCrash(IsoMetaGrid.Zone zone, boolean boolean1)voidcheckForMissingGenerators()voiddoLoadGridsquare()voiddoReuseGridsquares()static booleandoSpawnedVehiclesInInvalidPosition(BaseVehicle baseVehicle)static booleanFileExists(int int1, int int2)static java.lang.StringFix2x(java.lang.String string)static intFix2x(IsoGridSquare square, int int1)ErosionData.ChunkgetErosionData()IsoGridSquaregetGridSquare(int int1, int int2, int int3)longgetHashCodeObjects()IsoRoomgetRoom(int int1)inthashCode()booleanisGeneratorPoweringSquare(int int1, int int2, int int3)booleanLoadBrandNew(int int1, int int2)booleanLoadFromBuffer(int int1, int int2, java.nio.ByteBuffer byteBuffer)voidLoadFromDisk()voidLoadFromDiskOrBuffer(java.nio.ByteBuffer byteBuffer)voidloadInMainThread()voidloadInWorldStreamerThread()voidloadObjectState(java.nio.ByteBuffer byteBuffer)booleanLoadOrCreate(int int1, int int2, java.nio.ByteBuffer byteBuffer)voidrecalcHashCodeObjects()voidrecalcNeighboursNow()Deprecated.static voidremoveFromCheckedVehicles(BaseVehicle baseVehicle)voidremoveFromWorld()voidremoveGeneratorPos(int int1, int int2, int int3)static voidReset()voidresetForStore()static java.nio.ByteBufferSafeRead(java.lang.String string, int int1, int int2, java.nio.ByteBuffer byteBuffer)static voidSafeWrite(java.lang.String string, int int1, int int2, java.nio.ByteBuffer byteBuffer)voidSave(boolean boolean1)java.nio.ByteBufferSave(java.nio.ByteBuffer byteBuffer, java.util.zip.CRC32 cRC32)voidSaveLoadedChunk(ClientChunkRequest.Chunk chunk, java.util.zip.CRC32 cRC32)booleansaveObjectState(java.nio.ByteBuffer byteBuffer)voidsetCache()voidsetCacheIncludingNull()voidsetSquare(int int1, int int2, int int3, IsoGridSquare square)voidupdate()voidupdateBuildings()static voidupdatePlayerInBullet()voidupdateSounds()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bDoServerRequests
public static boolean bDoServerRequests -
wx
public int wx -
wy
public int wy -
squares
-
corpseData
-
maxLevel
public int maxLevel -
SoundList
public java.util.ArrayList SoundList -
next
-
jobType
-
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 -
bFixed2x
public boolean bFixed2x -
lightCheck
public boolean[] lightCheck -
bLightingNeverDone
public boolean[] bLightingNeverDone -
roomLights
public java.util.ArrayList roomLights -
vehicles
public java.util.ArrayList vehicles -
lootRespawnHour
public int lootRespawnHour -
hashCodeObjects
public long hashCodeObjects -
ObjectsSyncCount
public int ObjectsSyncCount -
physicsCheck
protected boolean physicsCheck -
MAX_SHAPES
protected static final int MAX_SHAPES- See Also:
- Constant Field Values
-
loadedPhysics
public boolean loadedPhysics -
loadGridSquare
public static java.util.concurrent.ConcurrentLinkedQueue loadGridSquare -
randomID
public int randomID -
revision
public long revision -
modificationTime
public long modificationTime
-
-
Constructor Details
-
IsoChunk
-
-
Method Details
-
updateSounds
public void updateSounds() -
getHashCodeObjects
public long getHashCodeObjects() -
recalcHashCodeObjects
public void recalcHashCodeObjects() -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
addBloodSplat
public void addBloodSplat(float float1, float float2, float float3, int int1) -
AddCorpses
public void AddCorpses(int int1, int int2) -
AddBlood
public void AddBlood(int int1, int int2) -
removeFromCheckedVehicles
-
addFromCheckedVehicles
-
Reset
public static void Reset() -
doSpawnedVehiclesInInvalidPosition
-
AddVehicles
public void AddVehicles() -
canAddRandomCarCrash
-
addRandomCarCrash
-
FileExists
public static boolean FileExists(int int1, int int2) -
LoadBrandNew
public boolean LoadBrandNew(int int1, int int2) -
LoadOrCreate
public boolean LoadOrCreate(int int1, int int2, java.nio.ByteBuffer byteBuffer) -
LoadFromBuffer
public boolean LoadFromBuffer(int int1, int int2, java.nio.ByteBuffer byteBuffer) -
loadInWorldStreamerThread
public void loadInWorldStreamerThread() -
loadInMainThread
public void loadInMainThread() -
recalcNeighboursNow
@Deprecated public void recalcNeighboursNow()Deprecated. -
updateBuildings
public void updateBuildings() -
updatePlayerInBullet
public static void updatePlayerInBullet() -
update
public void update() -
setSquare
-
getGridSquare
-
getRoom
-
removeFromWorld
public void removeFromWorld() -
doReuseGridsquares
public void doReuseGridsquares() -
LoadFromDisk
public void LoadFromDisk() throws java.io.IOException- Throws:
java.io.IOException
-
LoadFromDiskOrBuffer
public void LoadFromDiskOrBuffer(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
doLoadGridsquare
public void doLoadGridsquare() -
setCache
public void setCache() -
setCacheIncludingNull
public void setCacheIncludingNull() -
Save
public void Save(boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-
SafeWrite
public static void SafeWrite(java.lang.String string, int int1, int int2, java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
SafeRead
public static java.nio.ByteBuffer SafeRead(java.lang.String string, int int1, int int2, java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
SaveLoadedChunk
public void SaveLoadedChunk(ClientChunkRequest.Chunk chunk, java.util.zip.CRC32 cRC32) throws java.io.IOException- Throws:
java.io.IOException
-
Save
public java.nio.ByteBuffer Save(java.nio.ByteBuffer byteBuffer, java.util.zip.CRC32 cRC32) throws java.io.IOException- Throws:
java.io.IOException
-
saveObjectState
public boolean saveObjectState(java.nio.ByteBuffer byteBuffer) -
loadObjectState
public void loadObjectState(java.nio.ByteBuffer byteBuffer) -
Blam
public void Blam(int int1, int int2) -
getErosionData
-
Fix2x
-
Fix2x
public static java.lang.String Fix2x(java.lang.String string) -
addGeneratorPos
public void addGeneratorPos(int int1, int int2, int int3) -
removeGeneratorPos
public void removeGeneratorPos(int int1, int int2, int int3) -
isGeneratorPoweringSquare
public boolean isGeneratorPoweringSquare(int int1, int int2, int int3) -
checkForMissingGenerators
public void checkForMissingGenerators() -
resetForStore
public void resetForStore()
-