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 wx, int wy)voidaddBloodSplat(float x, float y, float z, int Type)voidAddCorpses(int wx, int wy)static voidaddFromCheckedVehicles(BaseVehicle v)voidaddGeneratorPos(int x, int y, int z)voidaddRandomCarCrash(IsoMetaGrid.Zone zone, boolean addToWorld)voidAddVehicles()voidBlam(int wx, int wy)booleancanAddRandomCarCrash(IsoMetaGrid.Zone zone, boolean force)voidcheckForMissingGenerators()voiddoLoadGridsquare()voiddoReuseGridsquares()static booleandoSpawnedVehiclesInInvalidPosition(BaseVehicle v)static booleanFileExists(int wx, int wy)static java.lang.StringFix2x(java.lang.String tileName)static intFix2x(IsoGridSquare square, int spriteID)ErosionData.ChunkgetErosionData()IsoGridSquaregetGridSquare(int x, int y, int z)longgetHashCodeObjects()IsoRoomgetRoom(int roomID)inthashCode()booleanisGeneratorPoweringSquare(int x, int y, int z)booleanLoadBrandNew(int wx, int wy)booleanLoadFromBuffer(int wx, int wy, java.nio.ByteBuffer bb)voidLoadFromDisk()voidLoadFromDiskOrBuffer(java.nio.ByteBuffer bb)voidloadInMainThread()voidloadInWorldStreamerThread()booleanLoadOrCreate(int wx, int wy, java.nio.ByteBuffer fromServer)voidrecalcHashCodeObjects()voidrecalcNeighboursNow()Deprecated.static voidremoveFromCheckedVehicles(BaseVehicle v)voidremoveFromWorld()voidremoveGeneratorPos(int x, int y, int z)static voidReset()voidresetForStore()static java.nio.ByteBufferSafeRead(java.lang.String prefix, int wx, int wy, java.nio.ByteBuffer bb)static voidSafeWrite(java.lang.String prefix, int wx, int wy, java.nio.ByteBuffer bb)voidSave(boolean bSaveQuit)java.nio.ByteBufferSave(java.nio.ByteBuffer bb, java.util.zip.CRC32 crc)voidSaveLoadedChunk(ClientChunkRequest.Chunk ccrc, java.util.zip.CRC32 crc32)voidsetCache()voidsetCacheIncludingNull()voidsetSquare(int x, int y, int z, 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 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()
-