Package zombie.iso
Class IsoChunk
java.lang.Object
zombie.iso.IsoChunk
public final 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 booleanbDoServerRequestsboolean[]bLightingNeverDonebooleanbLoadedCollideWithObstaclesPoly.ChunkDatacollisionFliesSound.ChunkDatacorpseDataBoundedQueueFloorBloodSplatsjava.util.ArrayListFloorBloodSplatsFadeIsoChunk.JobTypejobTypeboolean[]lightCheckstatic java.util.concurrent.ConcurrentLinkedQueueloadGridSquareintlootRespawnHourLotHeaderlotheaderintm_adjacentChunkLoadedCounterVehicleStorySpawnDatam_vehicleStorySpawnDataintmaxLevelNearestWalls.ChunkDatanearestWallsIsoChunknextintObjectsSyncCountprotected booleanphysicsCheckintrandomIDjava.util.ArrayListrefsstatic byte[][]renderByIndexlongrevisionjava.util.ArrayListroomLightsjava.util.ArrayListSoundListIsoGridSquare[][]squaresjava.util.ArrayListvehiclesjava.util.ArrayListvehiclesForAddToWorldjava.lang.ObjectvehiclesForAddToWorldLockintwxintwy -
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)voidaddSpawnedRoom(int int1)voidaddSurvivorInHorde(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()Deprecated.intgetNumberOfWaterTiles()IsoRoomgetRoom(int int1)IsoMetaGrid.ZonegetScavengeZone()inthashCodeNoOverride()Deprecated.static booleanIsDebugSave()booleanisGeneratorPoweringSquare(int int1, int int2, int int3)booleanisNewChunk()booleanisSpawnedRoom(int int1)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)booleanRandomizeModel(BaseVehicle baseVehicle, IsoMetaGrid.Zone zone, java.lang.String string, VehicleType vehicleType)voidrecalcHashCodeObjects()Deprecated.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()voidsetRandomVehicleStoryToSpawnLater(VehicleStorySpawnData vehicleStorySpawnData)voidsetSquare(int int1, int int2, int int3, IsoGridSquare square)voidupdate()voidupdateBuildings()static voidupdatePlayerInBullet()voidupdateSounds()voidupdateVehicleStory()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
-
nearestWalls
-
maxLevel
public int maxLevel -
SoundList
public final java.util.ArrayList SoundList -
next
-
collision
-
m_adjacentChunkLoadedCounter
public int m_adjacentChunkLoadedCounter -
m_vehicleStorySpawnData
-
jobType
-
lotheader
-
FloorBloodSplats
-
FloorBloodSplatsFade
public final java.util.ArrayList FloorBloodSplatsFade -
renderByIndex
public static final byte[][] renderByIndex -
refs
public final java.util.ArrayList refs -
bLoaded
public boolean bLoaded -
lightCheck
public final boolean[] lightCheck -
bLightingNeverDone
public final boolean[] bLightingNeverDone -
roomLights
public final java.util.ArrayList roomLights -
vehicles
public final java.util.ArrayList vehicles -
lootRespawnHour
public int lootRespawnHour -
ObjectsSyncCount
public int ObjectsSyncCount -
physicsCheck
protected boolean physicsCheck -
vehiclesForAddToWorldLock
public final java.lang.Object vehiclesForAddToWorldLock -
vehiclesForAddToWorld
public java.util.ArrayList vehiclesForAddToWorld -
loadGridSquare
public static final java.util.concurrent.ConcurrentLinkedQueue loadGridSquare -
randomID
public int randomID -
revision
public long revision
-
-
Constructor Details
-
IsoChunk
-
-
Method Details
-
updateSounds
public void updateSounds() -
getHashCodeObjects
@Deprecated public long getHashCodeObjects()Deprecated. -
recalcHashCodeObjects
@Deprecated public void recalcHashCodeObjects()Deprecated. -
hashCodeNoOverride
@Deprecated public int hashCodeNoOverride()Deprecated. -
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
-
RandomizeModel
public boolean RandomizeModel(BaseVehicle baseVehicle, IsoMetaGrid.Zone zone, java.lang.String string, VehicleType vehicleType) -
AddVehicles
public void AddVehicles() -
addSurvivorInHorde
public void addSurvivorInHorde(boolean boolean1) -
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() -
updateVehicleStory
public void updateVehicleStory() -
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
-
IsDebugSave
public static boolean IsDebugSave() -
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) throws java.io.IOException- Throws:
java.io.IOException
-
loadObjectState
public void loadObjectState(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
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() -
isNewChunk
public boolean isNewChunk() -
addSpawnedRoom
public void addSpawnedRoom(int int1) -
isSpawnedRoom
public boolean isSpawnedRoom(int int1) -
getScavengeZone
-
resetForStore
public void resetForStore() -
getNumberOfWaterTiles
public int getNumberOfWaterTiles() -
setRandomVehicleStoryToSpawnLater
-