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 class
IsoChunk.JobType
-
Field Summary
Fields Modifier and Type Field Description static boolean
bDoServerRequests
boolean
bFixed2x
boolean[]
bLightingNeverDone
boolean
bLoaded
FliesSound.ChunkData
corpseData
BoundedQueue
FloorBloodSplats
java.util.ArrayList
FloorBloodSplatsFade
long
hashCodeObjects
IsoChunk.JobType
jobType
boolean[]
lightCheck
boolean
loadedPhysics
static java.util.concurrent.ConcurrentLinkedQueue
loadGridSquare
int
lootRespawnHour
LotHeader
lotheader
static int
MAX_BLOOD_SPLATS
protected static int
MAX_SHAPES
int
maxLevel
long
modificationTime
IsoChunk
next
int
nextSplatIndex
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
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
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()
IsoRoom
getRoom(int int1)
int
hashCode()
boolean
isGeneratorPoweringSquare(int int1, int int2, int int3)
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)
void
recalcHashCodeObjects()
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
setSquare(int int1, int int2, int int3, IsoGridSquare square)
void
update()
void
updateBuildings()
static void
updatePlayerInBullet()
void
updateSounds()
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:
hashCode
in 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()
-