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 wx, int wy)
void
addBloodSplat(float x, float y, float z, int Type)
void
AddCorpses(int wx, int wy)
static void
addFromCheckedVehicles(BaseVehicle v)
void
addGeneratorPos(int x, int y, int z)
void
addRandomCarCrash(IsoMetaGrid.Zone zone, boolean addToWorld)
void
AddVehicles()
void
Blam(int wx, int wy)
boolean
canAddRandomCarCrash(IsoMetaGrid.Zone zone, boolean force)
void
checkForMissingGenerators()
void
doLoadGridsquare()
void
doReuseGridsquares()
static boolean
doSpawnedVehiclesInInvalidPosition(BaseVehicle v)
static boolean
FileExists(int wx, int wy)
static java.lang.String
Fix2x(java.lang.String tileName)
static int
Fix2x(IsoGridSquare square, int spriteID)
ErosionData.Chunk
getErosionData()
IsoGridSquare
getGridSquare(int x, int y, int z)
long
getHashCodeObjects()
IsoRoom
getRoom(int roomID)
int
hashCode()
boolean
isGeneratorPoweringSquare(int x, int y, int z)
boolean
LoadBrandNew(int wx, int wy)
boolean
LoadFromBuffer(int wx, int wy, java.nio.ByteBuffer bb)
void
LoadFromDisk()
void
LoadFromDiskOrBuffer(java.nio.ByteBuffer bb)
void
loadInMainThread()
void
loadInWorldStreamerThread()
boolean
LoadOrCreate(int wx, int wy, java.nio.ByteBuffer fromServer)
void
recalcHashCodeObjects()
void
recalcNeighboursNow()
Deprecated.static void
removeFromCheckedVehicles(BaseVehicle v)
void
removeFromWorld()
void
removeGeneratorPos(int x, int y, int z)
static void
Reset()
void
resetForStore()
static java.nio.ByteBuffer
SafeRead(java.lang.String prefix, int wx, int wy, java.nio.ByteBuffer bb)
static void
SafeWrite(java.lang.String prefix, int wx, int wy, java.nio.ByteBuffer bb)
void
Save(boolean bSaveQuit)
java.nio.ByteBuffer
Save(java.nio.ByteBuffer bb, java.util.zip.CRC32 crc)
void
SaveLoadedChunk(ClientChunkRequest.Chunk ccrc, java.util.zip.CRC32 crc32)
void
setCache()
void
setCacheIncludingNull()
void
setSquare(int x, int y, int z, 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 x, float y, float z, int Type) -
AddCorpses
public void AddCorpses(int wx, int wy) -
AddBlood
public void AddBlood(int wx, int wy) -
removeFromCheckedVehicles
-
addFromCheckedVehicles
-
Reset
public static void Reset() -
doSpawnedVehiclesInInvalidPosition
-
AddVehicles
public void AddVehicles() -
canAddRandomCarCrash
-
addRandomCarCrash
-
FileExists
public static boolean FileExists(int wx, int wy) -
LoadBrandNew
public boolean LoadBrandNew(int wx, int wy) -
LoadOrCreate
public boolean LoadOrCreate(int wx, int wy, java.nio.ByteBuffer fromServer) -
LoadFromBuffer
public boolean LoadFromBuffer(int wx, int wy, java.nio.ByteBuffer bb) -
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 bb) 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 bSaveQuit) throws java.io.IOException- Throws:
java.io.IOException
-
SafeWrite
public static void SafeWrite(java.lang.String prefix, int wx, int wy, java.nio.ByteBuffer bb) throws java.io.IOException- Throws:
java.io.IOException
-
SafeRead
public static java.nio.ByteBuffer SafeRead(java.lang.String prefix, int wx, int wy, java.nio.ByteBuffer bb) throws java.io.IOException- Throws:
java.io.IOException
-
SaveLoadedChunk
public void SaveLoadedChunk(ClientChunkRequest.Chunk ccrc, java.util.zip.CRC32 crc32) throws java.io.IOException- Throws:
java.io.IOException
-
Save
public java.nio.ByteBuffer Save(java.nio.ByteBuffer bb, java.util.zip.CRC32 crc) throws java.io.IOException- 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) -
addGeneratorPos
public void addGeneratorPos(int x, int y, int z) -
removeGeneratorPos
public void removeGeneratorPos(int x, int y, int z) -
isGeneratorPoweringSquare
public boolean isGeneratorPoweringSquare(int x, int y, int z) -
checkForMissingGenerators
public void checkForMissingGenerators() -
resetForStore
public void resetForStore()
-