Class IsoChunk
java.lang.Object
zombie.iso.IsoChunk
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final intstatic booleanstatic booleanstatic booleanstatic booleanfinal BoundedQueue<IsoFloorBloodSplat> final ArrayList<IsoFloorBloodSplat> static final shortfinal boolean[]final boolean[]intbooleanshortlongstatic final ConcurrentLinkedQueue<IsoChunk> intintintintbooleanintfinal ArrayList<IsoChunkMap> static final byte[][]longbooleanlongfinal ArrayList<IsoRoomLight> IsoGridSquare[][]final ArrayList<BaseVehicle> static final Objectintint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddBlood(int wx, int wy) voidaddBloodSplat(float x, float y, float z, int Type) voidAddCorpses(int wx, int wy) static voidvoidaddGeneratorPos(int x, int y, int z) voidaddModded(ChunkGenerationStatus chunkGenerationStatus) voidaddObjectAmbientEmitter(IsoObject object, ObjectAmbientEmitters.PerObjectLogic logic) voidaddRandomCarCrash(Zone zone, boolean addToWorld) voidaddSpawnedRoom(long roomID) voidaddSurvivorInHorde(boolean forced) voidvoidvoidBlam(int wx, int wy) booleancanAddRandomCarCrash(Zone zone, boolean force) voidvoidvoidcheckLightingLater_AllPlayers_OneLevel(int level) voidcheckLightingLater_OnePlayer_AllLevels(int playerIndex) voidcheckLightingLater_OnePlayer_OneLevel(int playerIndex, int level) voidcheckPhysicsLater(int level) voidcheckPhysicsLaterForActiveRagdoll(IsoChunkLevel isoChunkLevel) booleancontainsPoint(float x, float y) voidvoidvoidstatic booleanstatic booleanFileExists(int wx, int wy) static Stringstatic intFix2x(IsoGridSquare square, int spriteID) voidgetAttachmentsPartial(int i) boolean[]getCutawayDataForLevel(int z) getGridSquare(int chunkSquareX, int chunkSquareY, int worldSquareZ) getLevelData(int level) shortintintbyteintgetRenderLevels(int playerIndex) getRoom(long roomID) getSquaresForLevel(int worldSquareZ) getVispolyDataForLevel(int z) booleanhasAttachmentsPartial(SquareCoord coord) booleanhasFence()booleanhasObjectAmbientEmitter(IsoObject object) booleanvoidvoidinvalidateRenderChunkLevel(int level, long dirtyFlags) voidinvalidateRenderChunkLevels(long dirtyFlags) voidinvalidateVispolyChunkLevel(int level) booleanisAttachmentsDone(int i) booleanbooleanisBlendingDone(int i) booleanbooleanstatic booleanbooleanisGeneratorPoweringSquare(int x, int y, int z) isModded()voidisModded(EnumSet<ChunkGenerationStatus> chunkGenerationStatus) voidisModded(ChunkGenerationStatus chunkGenerationStatus) booleanbooleanIsOnScreen(boolean halfTileBorder) booleanisSpawnedRoom(long roomID) booleanisValidLevel(int level) booleanLoadBrandNew(int wx, int wy) booleanLoadFromBuffer(int wx, int wy, ByteBuffer bb) voidvoidvoidvoidvoidvoidbooleanLoadOrCreate(int wx, int wy, ByteBuffer fromServer) booleanRandomizeModel(BaseVehicle v, Zone zone, String name, VehicleType type) voidDeprecated.static voidvoidvoidremoveGeneratorPos(int x, int y, int z) voidremoveObjectAmbientEmitter(IsoObject object) static voidReset()voidvoidrmModded(ChunkGenerationStatus chunkGenerationStatus) static ByteBufferSafeRead(int wx, int wy, ByteBuffer bb) static voidSafeWrite(int wx, int wy, ByteBuffer bb) voidSave(boolean bPreventChunkReuse) Save(ByteBuffer bb, CRC32 crc, boolean bHotSave) voidSaveLoadedChunk(ClientChunkRequest.Chunk ccrc, CRC32 crc32) booleanvoidsetAttachmentsDoneFull(boolean attachmentsDoneFull) voidsetAttachmentsPartial(SquareCoord coord) voidsetAttachmentsState(int i, boolean value) voidsetBlendingDoneFull(boolean flag) voidsetBlendingDonePartial(boolean flag) voidsetBlendingModified(int i) voidsetCache()voidvoidsetMinMaxLevel(int minLevel, int maxLevel) voidsetModifDepth(BlendDirection dir, byte depth) voidsetModifDepth(BlendDirection dir, int depth) voidvoidsetSquare(int x, int y, int z, IsoGridSquare square) intsquaresIndexOfLevel(int worldSquareZ) voidupdate()voidvoidupdatePhysicsForLevel(int z) static voidvoidvoid
-
Field Details
-
doServerRequests
public static boolean doServerRequests -
wx
public int wx -
wy
public int wy -
squares
-
corpseData
-
maxLevel
public int maxLevel -
minLevel
public int minLevel -
soundList
-
lightingUpdateCounter
public int lightingUpdateCounter -
next
-
collision
-
adjacentChunkLoadedCounter
public int adjacentChunkLoadedCounter -
vehicleStorySpawnData
-
loadVehiclesObject
-
objectEmitterData
-
cutawayData
-
vispolyData
-
doWorldgen
public static boolean doWorldgen -
doForaging
public static boolean doForaging -
doAttachments
public static boolean doAttachments -
loadedFrame
public long loadedFrame -
renderFrame
public long renderFrame -
requiresHotSave
public boolean requiresHotSave -
preventHotSave
public boolean preventHotSave -
jobType
-
lotheader
-
floorBloodSplats
-
floorBloodSplatsFade
-
renderByIndex
public static final byte[][] renderByIndex -
refs
-
loaded
public boolean loaded -
proceduralZombieSquares
-
lightCheck
public final boolean[] lightCheck -
lightingNeverDone
public final boolean[] lightingNeverDone -
roomLights
-
vehicles
-
lootRespawnHour
public int lootRespawnHour -
LB_PATHFIND
public static final short LB_PATHFIND- See Also:
-
loadedBits
public short loadedBits -
objectsSyncCount
public int objectsSyncCount -
ragdollControllersForAddToWorld
-
loadGridSquare
-
BLOCK_SIZE
public static final int BLOCK_SIZE- See Also:
-
WriteLock
-
randomId
public int randomId -
revision
public long revision
-
-
Constructor Details
-
IsoChunk
-
IsoChunk
-
-
Method Details
-
flagForHotSave
public void flagForHotSave() -
updateSounds
public void updateSounds() -
IsOnScreen
public boolean IsOnScreen(boolean halfTileBorder) -
checkLightingLater_AllPlayers_AllLevels
public void checkLightingLater_AllPlayers_AllLevels() -
checkLightingLater_AllPlayers_OneLevel
public void checkLightingLater_AllPlayers_OneLevel(int level) -
checkLightingLater_OnePlayer_AllLevels
public void checkLightingLater_OnePlayer_AllLevels(int playerIndex) -
checkLightingLater_OnePlayer_OneLevel
public void checkLightingLater_OnePlayer_OneLevel(int playerIndex, int level) -
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
-
RandomizeModel
-
AddVehicles
public void AddVehicles() -
addSurvivorInHorde
public void addSurvivorInHorde(boolean forced) -
canAddRandomCarCrash
-
addRandomCarCrash
-
FileExists
public static boolean FileExists(int wx, int wy) -
checkPhysicsLater
public void checkPhysicsLater(int level) -
updatePhysicsForLevel
public void updatePhysicsForLevel(int z) -
setBlendingDoneFull
public void setBlendingDoneFull(boolean flag) -
isBlendingDoneFull
public boolean isBlendingDoneFull() -
setBlendingDonePartial
public void setBlendingDonePartial(boolean flag) -
isBlendingDonePartial
public boolean isBlendingDonePartial() -
setBlendingModified
public void setBlendingModified(int i) -
isBlendingDone
public boolean isBlendingDone(int i) -
setModifDepth
-
setModifDepth
-
getModifDepth
-
setAttachmentsDoneFull
public void setAttachmentsDoneFull(boolean attachmentsDoneFull) -
isAttachmentsDoneFull
public boolean isAttachmentsDoneFull() -
setAttachmentsState
public void setAttachmentsState(int i, boolean value) -
isAttachmentsDone
public boolean isAttachmentsDone(int i) -
getAttachmentsState
public boolean[] getAttachmentsState() -
setAttachmentsPartial
-
getAttachmentsPartial
-
hasAttachmentsPartial
-
attachmentsPartialSize
-
isModded
-
isModded
-
isModded
-
addModded
-
rmModded
-
LoadBrandNew
public boolean LoadBrandNew(int wx, int wy) -
LoadOrCreate
-
LoadFromBuffer
-
loadInWorldStreamerThread
public void loadInWorldStreamerThread() -
loadInMainThread
public void loadInMainThread() -
recalcNeighboursNow
Deprecated. -
updateBuildings
public void updateBuildings() -
updatePlayerInBullet
public static void updatePlayerInBullet() -
update
public void update() -
updateVehicleStory
public void updateVehicleStory() -
squaresIndexOfLevel
public int squaresIndexOfLevel(int worldSquareZ) -
getSquaresForLevel
-
doPathfind
public void doPathfind() -
ignorePathfind
public void ignorePathfind() -
setSquare
-
getMinLevel
public int getMinLevel() -
getMaxLevel
public int getMaxLevel() -
isValidLevel
public boolean isValidLevel(int level) -
setMinMaxLevel
public void setMinMaxLevel(int minLevel, int maxLevel) -
getLevelData
-
getGridSquare
-
getRoom
-
removeFromWorld
public void removeFromWorld() -
doReuseGridsquares
public void doReuseGridsquares() -
LoadFromDisk
- Throws:
IOException
-
LoadFromDiskOrBuffer
- Throws:
IOException
-
LoadFromDiskOrBufferInternal
- Throws:
IOException
-
doLoadGridsquare
public void doLoadGridsquare() -
setCache
public void setCache() -
setCacheIncludingNull
public void setCacheIncludingNull() -
Save
- Throws:
IOException
-
SafeWrite
- Throws:
IOException
-
SafeRead
- Throws:
IOException
-
SaveLoadedChunk
- Throws:
IOException
-
IsDebugSave
public static boolean IsDebugSave() -
Save
- Throws:
IOException
-
saveObjectState
- Throws:
IOException
-
loadObjectState
- Throws:
IOException
-
Blam
public void Blam(int wx, int wy) -
getErosionData
-
Fix2x
-
Fix2x
-
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() -
isNewChunk
public boolean isNewChunk() -
addSpawnedRoom
public void addSpawnedRoom(long roomID) -
isSpawnedRoom
public boolean isSpawnedRoom(long roomID) -
getScavengeZone
-
resetForStore
public void resetForStore() -
getNumberOfWaterTiles
public int getNumberOfWaterTiles() -
setRandomVehicleStoryToSpawnLater
-
hasObjectAmbientEmitter
-
addObjectAmbientEmitter
-
removeObjectAmbientEmitter
-
assignLoadID
public void assignLoadID() -
getLoadID
public short getLoadID() -
containsPoint
public boolean containsPoint(float x, float y) -
getRenderLevels
-
invalidateRenderChunkLevel
public void invalidateRenderChunkLevel(int level, long dirtyFlags) -
invalidateRenderChunkLevels
public void invalidateRenderChunkLevels(long dirtyFlags) -
getCutawayData
-
getCutawayDataForLevel
-
invalidateVispolyChunkLevel
public void invalidateVispolyChunkLevel(int level) -
getVispolyData
-
getVispolyDataForLevel
-
hasWaterSquare
public boolean hasWaterSquare() -
checkPhysicsLaterForActiveRagdoll
-
hasFence
public boolean hasFence()
-