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 class
IsoChunk.JobType
-
Field Summary
Fields Modifier and Type Field Description static boolean
bDoServerRequests
boolean[]
bLightingNeverDone
boolean
bLoaded
CollideWithObstaclesPoly.ChunkData
collision
FliesSound.ChunkData
corpseData
BoundedQueue
FloorBloodSplats
java.util.ArrayList
FloorBloodSplatsFade
IsoChunk.JobType
jobType
boolean[]
lightCheck
static java.util.concurrent.ConcurrentLinkedQueue
loadGridSquare
int
lootRespawnHour
LotHeader
lotheader
int
m_adjacentChunkLoadedCounter
VehicleStorySpawnData
m_vehicleStorySpawnData
int
maxLevel
NearestWalls.ChunkData
nearestWalls
IsoChunk
next
int
ObjectsSyncCount
protected boolean
physicsCheck
int
randomID
java.util.ArrayList
refs
static byte[][]
renderByIndex
long
revision
java.util.ArrayList
roomLights
java.util.ArrayList
SoundList
IsoGridSquare[][]
squares
java.util.ArrayList
vehicles
java.util.ArrayList
vehiclesForAddToWorld
java.lang.Object
vehiclesForAddToWorldLock
int
wx
int
wy
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
AddBlood(int int1, int int2)
void
addBloodSplat(float float1, float float2, float float3, int int1)
void
AddCorpses(int int1, int int2)
static void
addFromCheckedVehicles(BaseVehicle baseVehicle)
void
addGeneratorPos(int int1, int int2, int int3)
void
addRandomCarCrash(IsoMetaGrid.Zone zone, boolean boolean1)
void
addSpawnedRoom(int int1)
void
addSurvivorInHorde(boolean boolean1)
void
AddVehicles()
void
Blam(int int1, int int2)
boolean
canAddRandomCarCrash(IsoMetaGrid.Zone zone, boolean boolean1)
void
checkForMissingGenerators()
void
doLoadGridsquare()
void
doReuseGridsquares()
static boolean
doSpawnedVehiclesInInvalidPosition(BaseVehicle baseVehicle)
static boolean
FileExists(int int1, int int2)
static java.lang.String
Fix2x(java.lang.String string)
static int
Fix2x(IsoGridSquare square, int int1)
ErosionData.Chunk
getErosionData()
IsoGridSquare
getGridSquare(int int1, int int2, int int3)
long
getHashCodeObjects()
Deprecated.int
getNumberOfWaterTiles()
IsoRoom
getRoom(int int1)
IsoMetaGrid.Zone
getScavengeZone()
int
hashCodeNoOverride()
Deprecated.static boolean
IsDebugSave()
boolean
isGeneratorPoweringSquare(int int1, int int2, int int3)
boolean
isNewChunk()
boolean
isSpawnedRoom(int int1)
boolean
LoadBrandNew(int int1, int int2)
boolean
LoadFromBuffer(int int1, int int2, java.nio.ByteBuffer byteBuffer)
void
LoadFromDisk()
void
LoadFromDiskOrBuffer(java.nio.ByteBuffer byteBuffer)
void
loadInMainThread()
void
loadInWorldStreamerThread()
void
loadObjectState(java.nio.ByteBuffer byteBuffer)
boolean
LoadOrCreate(int int1, int int2, java.nio.ByteBuffer byteBuffer)
boolean
RandomizeModel(BaseVehicle baseVehicle, IsoMetaGrid.Zone zone, java.lang.String string, VehicleType vehicleType)
void
recalcHashCodeObjects()
Deprecated.void
recalcNeighboursNow()
Deprecated.static void
removeFromCheckedVehicles(BaseVehicle baseVehicle)
void
removeFromWorld()
void
removeGeneratorPos(int int1, int int2, int int3)
static void
Reset()
void
resetForStore()
static java.nio.ByteBuffer
SafeRead(java.lang.String string, int int1, int int2, java.nio.ByteBuffer byteBuffer)
static void
SafeWrite(java.lang.String string, int int1, int int2, java.nio.ByteBuffer byteBuffer)
void
Save(boolean boolean1)
java.nio.ByteBuffer
Save(java.nio.ByteBuffer byteBuffer, java.util.zip.CRC32 cRC32)
void
SaveLoadedChunk(ClientChunkRequest.Chunk chunk, java.util.zip.CRC32 cRC32)
boolean
saveObjectState(java.nio.ByteBuffer byteBuffer)
void
setCache()
void
setCacheIncludingNull()
void
setRandomVehicleStoryToSpawnLater(VehicleStorySpawnData vehicleStorySpawnData)
void
setSquare(int int1, int int2, int int3, IsoGridSquare square)
void
update()
void
updateBuildings()
static void
updatePlayerInBullet()
void
updateSounds()
void
updateVehicleStory()
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
-