Package zombie.iso
Class IsoChunk
java.lang.Object
zombie.iso.IsoChunk
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
final boolean[]
boolean
final BoundedQueue<IsoFloorBloodSplat>
final ArrayList<IsoFloorBloodSplat>
final boolean[]
static final ConcurrentLinkedQueue<IsoChunk>
int
int
int
final NearestWalls.ChunkData
int
int
final ArrayList<IsoChunkMap>
static final byte[][]
long
final ArrayList<IsoRoomLight>
final IsoGridSquare[][]
final ArrayList<BaseVehicle>
final Object
static final Object
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddBlood
(int wx, int wy) void
addBloodSplat
(float x, float y, float z, int Type) void
AddCorpses
(int wx, int wy) static void
void
addGeneratorPos
(int x, int y, int z) void
addObjectAmbientEmitter
(IsoObject object, ObjectAmbientEmitters.PerObjectLogic logic) void
addRandomCarCrash
(IsoMetaGrid.Zone zone, boolean addToWorld) void
addSpawnedRoom
(int roomID) void
addSurvivorInHorde
(boolean forced) void
void
Blam
(int wx, int wy) boolean
canAddRandomCarCrash
(IsoMetaGrid.Zone zone, boolean force) void
void
void
static boolean
static boolean
FileExists
(int wx, int wy) static String
static int
Fix2x
(IsoGridSquare square, int spriteID) getGridSquare
(int x, int y, int z) long
Deprecated.int
getRoom
(int roomID) int
Deprecated.boolean
hasObjectAmbientEmitter
(IsoObject object) static boolean
boolean
isGeneratorPoweringSquare
(int x, int y, int z) boolean
boolean
isSpawnedRoom
(int roomID) boolean
LoadBrandNew
(int wx, int wy) boolean
LoadFromBuffer
(int wx, int wy, ByteBuffer bb) void
void
void
void
void
boolean
LoadOrCreate
(int wx, int wy, ByteBuffer fromServer) boolean
RandomizeModel
(BaseVehicle v, IsoMetaGrid.Zone zone, String name, VehicleType type) Randomize a model with his corresponding texture defined in VehicleTypevoid
Deprecated.void
Deprecated.static void
void
void
removeGeneratorPos
(int x, int y, int z) void
removeObjectAmbientEmitter
(IsoObject object) static void
Reset()
void
static ByteBuffer
SafeRead
(String prefix, int wx, int wy, ByteBuffer bb) static void
SafeWrite
(String prefix, int wx, int wy, ByteBuffer bb) void
Save
(boolean bSaveQuit) Save
(ByteBuffer bb, CRC32 crc) void
SaveLoadedChunk
(ClientChunkRequest.Chunk ccrc, CRC32 crc32) boolean
void
setCache()
void
void
void
setSquare
(int x, int y, int z, IsoGridSquare square) void
update()
void
static void
void
void
-
Field Details
-
bDoServerRequests
public static boolean bDoServerRequests -
wx
public int wx -
wy
public int wy -
squares
-
corpseData
-
nearestWalls
-
maxLevel
public int maxLevel -
SoundList
-
next
-
collision
-
m_adjacentChunkLoadedCounter
public int m_adjacentChunkLoadedCounter -
m_vehicleStorySpawnData
-
m_loadVehiclesObject
-
m_objectEmitterData
-
jobType
-
lotheader
-
FloorBloodSplats
-
FloorBloodSplatsFade
-
renderByIndex
public static final byte[][] renderByIndex -
refs
-
bLoaded
public boolean bLoaded -
lightCheck
public final boolean[] lightCheck -
bLightingNeverDone
public final boolean[] bLightingNeverDone -
roomLights
-
vehicles
-
lootRespawnHour
public int lootRespawnHour -
ObjectsSyncCount
public int ObjectsSyncCount -
vehiclesForAddToWorldLock
-
vehiclesForAddToWorld
-
loadGridSquare
-
WriteLock
-
randomID
public int randomID -
revision
public long revision
-
-
Constructor Details
-
IsoChunk
-
-
Method Details
-
updateSounds
public void updateSounds() -
getHashCodeObjects
Deprecated. -
recalcHashCodeObjects
Deprecated. -
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
-
addFromCheckedVehicles
-
Reset
public static void Reset() -
doSpawnedVehiclesInInvalidPosition
-
RandomizeModel
Randomize a model with his corresponding texture defined in VehicleType- Parameters:
v
- vehiclezone
- zone we're spawning on- Returns:
- true if succed
-
AddVehicles
public void AddVehicles() -
addSurvivorInHorde
public void addSurvivorInHorde(boolean forced) -
canAddRandomCarCrash
-
addRandomCarCrash
-
FileExists
public static boolean FileExists(int wx, int wy) -
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() -
setSquare
-
getGridSquare
-
getRoom
-
removeFromWorld
public void removeFromWorld() -
doReuseGridsquares
public void doReuseGridsquares() -
LoadFromDisk
- Throws:
IOException
-
LoadFromDiskOrBuffer
- 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(int roomID) -
isSpawnedRoom
public boolean isSpawnedRoom(int roomID) -
getScavengeZone
-
resetForStore
public void resetForStore() -
getNumberOfWaterTiles
public int getNumberOfWaterTiles() -
setRandomVehicleStoryToSpawnLater
-
hasObjectAmbientEmitter
-
addObjectAmbientEmitter
-
removeObjectAmbientEmitter
-