Class IsoChunk

java.lang.Object
zombie.iso.IsoChunk

public final class IsoChunk extends Object
  • Field Details

    • doServerRequests

      public static boolean doServerRequests
    • wx

      public int wx
    • wy

      public int wy
    • squares

      public IsoGridSquare[][] squares
    • corpseData

      public FliesSound.ChunkData corpseData
    • maxLevel

      public int maxLevel
    • minLevel

      public int minLevel
    • soundList

      public final ArrayList<WorldSoundManager.WorldSound> soundList
    • lightingUpdateCounter

      public int lightingUpdateCounter
    • next

      public IsoChunk next
    • collision

      public final CollideWithObstaclesPoly.ChunkData collision
    • adjacentChunkLoadedCounter

      public int adjacentChunkLoadedCounter
    • vehicleStorySpawnData

      public VehicleStorySpawnData vehicleStorySpawnData
    • loadVehiclesObject

      public Object loadVehiclesObject
    • objectEmitterData

      public final ObjectAmbientEmitters.ChunkData objectEmitterData
    • cutawayData

      public final FBORenderCutaways.ChunkLevelsData cutawayData
    • vispolyData

      public final VisibilityPolygon2.ChunkData 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

      public IsoChunk.JobType jobType
    • lotheader

      public LotHeader lotheader
    • floorBloodSplats

      public final BoundedQueue<IsoFloorBloodSplat> floorBloodSplats
    • floorBloodSplatsFade

      public final ArrayList<IsoFloorBloodSplat> floorBloodSplatsFade
    • renderByIndex

      public static final byte[][] renderByIndex
    • refs

      public final ArrayList<IsoChunkMap> refs
    • loaded

      public boolean loaded
    • proceduralZombieSquares

      public ArrayList<IsoGridSquare> proceduralZombieSquares
    • lightCheck

      public final boolean[] lightCheck
    • lightingNeverDone

      public final boolean[] lightingNeverDone
    • roomLights

      public final ArrayList<IsoRoomLight> roomLights
    • vehicles

      public final ArrayList<BaseVehicle> vehicles
    • lootRespawnHour

      public int lootRespawnHour
    • LB_PATHFIND

      public static final short LB_PATHFIND
      See Also:
    • loadedBits

      public short loadedBits
    • objectsSyncCount

      public int objectsSyncCount
    • ragdollControllersForAddToWorld

      public ArrayList<IsoGameCharacter> ragdollControllersForAddToWorld
    • loadGridSquare

      public static final ConcurrentLinkedQueue<IsoChunk> loadGridSquare
    • BLOCK_SIZE

      public static final int BLOCK_SIZE
      See Also:
    • WriteLock

      public static final Object WriteLock
    • randomId

      public int randomId
    • revision

      public long revision
  • Constructor Details

  • 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

      public static void removeFromCheckedVehicles(BaseVehicle v)
    • addFromCheckedVehicles

      public static void addFromCheckedVehicles(BaseVehicle v)
    • Reset

      public static void Reset()
    • doSpawnedVehiclesInInvalidPosition

      public static boolean doSpawnedVehiclesInInvalidPosition(BaseVehicle v)
    • RandomizeModel

      public boolean RandomizeModel(BaseVehicle v, Zone zone, String name, VehicleType type)
    • AddVehicles

      public void AddVehicles()
    • addSurvivorInHorde

      public void addSurvivorInHorde(boolean forced)
    • canAddRandomCarCrash

      public boolean canAddRandomCarCrash(Zone zone, boolean force)
    • addRandomCarCrash

      public void addRandomCarCrash(Zone zone, boolean addToWorld)
    • 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

      public void setModifDepth(BlendDirection dir, byte depth)
    • setModifDepth

      public void setModifDepth(BlendDirection dir, int depth)
    • getModifDepth

      public byte getModifDepth(BlendDirection dir)
    • 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

      public void setAttachmentsPartial(SquareCoord coord)
    • getAttachmentsPartial

      public SquareCoord getAttachmentsPartial(int i)
    • hasAttachmentsPartial

      public boolean hasAttachmentsPartial(SquareCoord coord)
    • attachmentsPartialSize

      public Integer attachmentsPartialSize()
    • isModded

      public EnumSet<ChunkGenerationStatus> isModded()
    • isModded

      public void isModded(EnumSet<ChunkGenerationStatus> chunkGenerationStatus)
    • isModded

      public void isModded(ChunkGenerationStatus chunkGenerationStatus)
    • addModded

      public void addModded(ChunkGenerationStatus chunkGenerationStatus)
    • rmModded

      public void rmModded(ChunkGenerationStatus chunkGenerationStatus)
    • LoadBrandNew

      public boolean LoadBrandNew(int wx, int wy)
    • LoadOrCreate

      public boolean LoadOrCreate(int wx, int wy, ByteBuffer fromServer)
    • LoadFromBuffer

      public boolean LoadFromBuffer(int wx, int wy, 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()
    • updateVehicleStory

      public void updateVehicleStory()
    • squaresIndexOfLevel

      public int squaresIndexOfLevel(int worldSquareZ)
    • getSquaresForLevel

      public IsoGridSquare[] getSquaresForLevel(int worldSquareZ)
    • doPathfind

      public void doPathfind()
    • ignorePathfind

      public void ignorePathfind()
    • setSquare

      public void setSquare(int x, int y, int z, IsoGridSquare square)
    • getMinLevel

      public int getMinLevel()
    • getMaxLevel

      public int getMaxLevel()
    • isValidLevel

      public boolean isValidLevel(int level)
    • setMinMaxLevel

      public void setMinMaxLevel(int minLevel, int maxLevel)
    • getLevelData

      public IsoChunkLevel getLevelData(int level)
    • getGridSquare

      public IsoGridSquare getGridSquare(int chunkSquareX, int chunkSquareY, int worldSquareZ)
    • getRoom

      public IsoRoom getRoom(long roomID)
    • removeFromWorld

      public void removeFromWorld()
    • doReuseGridsquares

      public void doReuseGridsquares()
    • LoadFromDisk

      public void LoadFromDisk() throws IOException
      Throws:
      IOException
    • LoadFromDiskOrBuffer

      public void LoadFromDiskOrBuffer(ByteBuffer bb) throws IOException
      Throws:
      IOException
    • LoadFromDiskOrBufferInternal

      public void LoadFromDiskOrBufferInternal(ByteBuffer bb) throws IOException
      Throws:
      IOException
    • doLoadGridsquare

      public void doLoadGridsquare()
    • setCache

      public void setCache()
    • setCacheIncludingNull

      public void setCacheIncludingNull()
    • Save

      public void Save(boolean bPreventChunkReuse) throws IOException
      Throws:
      IOException
    • SafeWrite

      public static void SafeWrite(int wx, int wy, ByteBuffer bb) throws IOException
      Throws:
      IOException
    • SafeRead

      public static ByteBuffer SafeRead(int wx, int wy, ByteBuffer bb) throws IOException
      Throws:
      IOException
    • SaveLoadedChunk

      public void SaveLoadedChunk(ClientChunkRequest.Chunk ccrc, CRC32 crc32) throws IOException
      Throws:
      IOException
    • IsDebugSave

      public static boolean IsDebugSave()
    • Save

      public ByteBuffer Save(ByteBuffer bb, CRC32 crc, boolean bHotSave) throws IOException
      Throws:
      IOException
    • saveObjectState

      public boolean saveObjectState(ByteBuffer bb) throws IOException
      Throws:
      IOException
    • loadObjectState

      public void loadObjectState(ByteBuffer bb) throws IOException
      Throws:
      IOException
    • Blam

      public void Blam(int wx, int wy)
    • getErosionData

      public ErosionData.Chunk getErosionData()
    • Fix2x

      public static int Fix2x(IsoGridSquare square, int spriteID)
    • Fix2x

      public static String Fix2x(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()
    • isNewChunk

      public boolean isNewChunk()
    • addSpawnedRoom

      public void addSpawnedRoom(long roomID)
    • isSpawnedRoom

      public boolean isSpawnedRoom(long roomID)
    • getScavengeZone

      public Zone getScavengeZone()
    • resetForStore

      public void resetForStore()
    • getNumberOfWaterTiles

      public int getNumberOfWaterTiles()
    • setRandomVehicleStoryToSpawnLater

      public void setRandomVehicleStoryToSpawnLater(VehicleStorySpawnData spawnData)
    • hasObjectAmbientEmitter

      public boolean hasObjectAmbientEmitter(IsoObject object)
    • addObjectAmbientEmitter

      public void addObjectAmbientEmitter(IsoObject object, ObjectAmbientEmitters.PerObjectLogic logic)
    • removeObjectAmbientEmitter

      public void removeObjectAmbientEmitter(IsoObject object)
    • assignLoadID

      public void assignLoadID()
    • getLoadID

      public short getLoadID()
    • containsPoint

      public boolean containsPoint(float x, float y)
    • getRenderLevels

      public FBORenderLevels getRenderLevels(int playerIndex)
    • invalidateRenderChunkLevel

      public void invalidateRenderChunkLevel(int level, long dirtyFlags)
    • invalidateRenderChunkLevels

      public void invalidateRenderChunkLevels(long dirtyFlags)
    • getCutawayData

      public FBORenderCutaways.ChunkLevelsData getCutawayData()
    • getCutawayDataForLevel

      public FBORenderCutaways.ChunkLevelData getCutawayDataForLevel(int z)
    • invalidateVispolyChunkLevel

      public void invalidateVispolyChunkLevel(int level)
    • getVispolyData

      public VisibilityPolygon2.ChunkData getVispolyData()
    • getVispolyDataForLevel

      public VisibilityPolygon2.ChunkLevelData getVispolyDataForLevel(int z)
    • hasWaterSquare

      public boolean hasWaterSquare()
    • checkPhysicsLaterForActiveRagdoll

      public void checkPhysicsLaterForActiveRagdoll(IsoChunkLevel isoChunkLevel)
    • hasFence

      public boolean hasFence()