Package zombie.iso

Class IsoChunk

java.lang.Object
zombie.iso.IsoChunk

public final class IsoChunk extends Object
  • Field Details

  • Constructor Details

    • IsoChunk

      public IsoChunk(IsoCell cell)
  • Method Details

    • updateSounds

      public void updateSounds()
    • getHashCodeObjects

      @Deprecated public long getHashCodeObjects()
      Deprecated.
    • recalcHashCodeObjects

      @Deprecated public void recalcHashCodeObjects()
      Deprecated.
    • hashCodeNoOverride

      @Deprecated public int hashCodeNoOverride()
      Deprecated.
    • 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, IsoMetaGrid.Zone zone, String name, VehicleType type)
      Randomize a model with his corresponding texture defined in VehicleType
      Parameters:
      v - vehicle
      zone - zone we're spawning on
      Returns:
      true if succed
    • AddVehicles

      public void AddVehicles()
    • addSurvivorInHorde

      public void addSurvivorInHorde(boolean forced)
    • canAddRandomCarCrash

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

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

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

      public IsoGridSquare getGridSquare(int x, int y, int z)
    • getRoom

      public IsoRoom getRoom(int 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
    • doLoadGridsquare

      public void doLoadGridsquare()
    • setCache

      public void setCache()
    • setCacheIncludingNull

      public void setCacheIncludingNull()
    • Save

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

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

      public static ByteBuffer SafeRead(String prefix, 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) 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(int roomID)
    • isSpawnedRoom

      public boolean isSpawnedRoom(int roomID)
    • getScavengeZone

      public IsoMetaGrid.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)