Class IsoCell
java.lang.Object
zombie.iso.IsoCell
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static final class
static class
protected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ArrayList
<BaseVehicle> final boolean[]
boolean
boolean
final ArrayList
<IsoBuilding> static int
static int
final IsoChunkMap[]
int
static final boolean
final ArrayList
<IsoGridSquare> final ArrayList
<IsoGridSquare> static ArrayList
<IsoGridSquare> int
static final int
int
int
final Vector2[]
final IsoDirections[]
final IsoGridSquare[]
final boolean[]
final IsoGridSquare[]
final boolean[]
int
static Shader
static Shader
static int
int
int
int
int
static final ArrayList
<IsoGridSquare> int
int
int
final IsoZombie[]
final float[]
static final float
final ArrayList
<ArrayList<IsoBuilding>> final IsoBuilding[][]
static final IsoCell.PerPlayerRender[]
final boolean[]
final boolean[]
final ArrayList
<ArrayList<IsoBuilding>> final IsoBuilding[][]
long
final long[]
final ArrayList
<IsoWorldInventoryObject> protected int
protected int
boolean
int
final ArrayList
<IsoRoomLight> static final int
static final int
static final int
static final int
static final int
static final ArrayList
<IsoGridSquare> static final ArrayList
<IsoGridSquare> static final ArrayList
<IsoGridSquare> int
int
int
int
final int[]
static final ArrayList
<IsoGridSquare> final ArrayList
<BaseVehicle> final ArrayList
<ArrayList<IsoBuilding>> final IsoBuilding[][]
static final int
int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeatSource
(IsoHeatSource heatSource) addLamppost
(int x, int y, int z, float r, float g, float b, int rad) void
addLamppost
(IsoLightSource light) void
addTileObject
(IsoGridSquare isoGridSquare, String string) void
addToProcessIsoObject
(IsoObject object) void
addToProcessIsoObjectRemove
(IsoObject object) void
addToProcessItems
(ArrayList<InventoryItem> items) void
void
void
void
addToProcessWorldItems
(IsoWorldInventoryObject worldItem) void
void
void
addToWindowList
(IsoWindow window) void
AddUniqueToBuildingList
(ArrayList<IsoBuilding> arrayList, IsoBuilding isoBuilding) boolean
void
CalculateVertColoursForTile
(IsoGridSquare sqThis, int x, int y, int zz, int playerIndex) boolean
CanBuildingSquareOccludePlayer
(IsoGridSquare square, int playerIndex) void
checkHaveRoof
(int x, int y) void
clearCacheGridSquare
(int playerIndex) boolean
collapsibleBuildingSquareAlgorithm
(BuildingDef buildingDef, IsoGridSquare isoGridSquare2, IsoGridSquare isoGridSquare0) ConnectNewSquare
(IsoGridSquare newSquare, boolean bDoSurrounds) createNewGridSquare
(int x, int y, int z, boolean recalcAll) void
void
Dispose()
float
DistanceFromSupport
(int x, int y, int z) boolean
DoBuilding
(int player, boolean bRender) boolean
DoesSquareHaveValidCutaways
(IsoGridSquare isoGridSquare6, IsoGridSquare isoGridSquare1, int int1, long long0) void
DoGridNav
(IsoGridSquare newSquare, IsoGridSquare.GetSquare getter) void
void
EnsureSurroundNotNull
(int xx, int yy, int zz) void
flattenAnyFoliage
(IsoCell.PerPlayerRender perPlayerRenderx, int int3) static IsoDirections
static int
getBComponent
(int col) getBestBuildings
(IsoCell.BuildingSearchCriteria criteria, int count) static Stack
<BuildingScore> void
GetBuildingsInFrontOfCharacter
(ArrayList<IsoBuilding> arrayList, IsoGridSquare isoGridSquare, boolean boolean0) GetBuildingsInFrontOfMustSeeSquare
(IsoGridSquare isoGridSquare, IsoGridOcclusionData.OcclusionFilter occlusionFilter) static int
static int
getChunk
(int _wx, int _wy) getChunkForGridSquare
(int x, int y, int z) getChunkMap
(int pl) getClosestBuildingExcept
(IsoGameCharacter chr, IsoRoom except) int
int
int
int
getDangerScore
(int x, int y) se.krka.kahlua.vm.KahluaTable
getDrag
(int int0) long
getFreeTile
(RoomDef def) static int
getGComponent
(int col) getGridSquare
(double x, double y, double z) getGridSquare
(int x, int y, int z) getGridSquare
(Double x, Double y, Double z) getGridSquareDirect
(int x, int y, int z, int playerIndex) float
getHeatSourceHighestTemperature
(float surroundingAirTemperature, int x, int y, int z) int
getHeatSourceTemperature
(int x, int y, int z) int
int
static IsoCell
getLightSourceAt
(int x, int y, int z) se.krka.kahlua.vm.KahluaTable
int
static int
int
getMaxX()
int
getMaxY()
int
getMaxZ()
int
getMinX()
int
getMinY()
int
getMinZ()
getNearestVisibleZombie
(int playerIndex) getNetworkPlayer
(int RemoteID) getOrCreateGridSquare
(double x, double y, double z) GetPeekedInBuilding
(IsoGridSquare isoGridSquare0, IsoDirections isoDirections) getPerPlayerRenderAt
(int int0) int
static int
getRComponent
(int col) getRelativeGridSquare
(int x, int y, int z) getRoom
(int ID) int
void
GetSquaresAroundPlayerSquare
(IsoPlayer isoPlayer, IsoGridSquare isoGridSquare0, ArrayList<IsoGridSquare> arrayList0, ArrayList<IsoGridSquare> arrayList1) int
getWidth()
int
int
int
boolean
gridSquareIsSnow
(int x, int y, int z) void
protected boolean
void
invalidatePeekedRoom
(int playerIndex) boolean
IsBehindStuff
(IsoGridSquare isoGridSquare0) boolean
IsCollapsibleBuildingSquare
(IsoGridSquare isoGridSquare) boolean
IsCutawaySquare
(IsoGridSquare isoGridSquare0, long long0) boolean
isInChunkMap
(int x, int y) boolean
isNull
(int x, int y, int z) boolean
IsPlayerWindowPeeking
(int playerIndex) boolean
boolean
LoadPlayer
(int WorldVersion) void
void
int
PlaceLot
(IsoLot isoLot, int int7, int int9, int int3, IsoChunk isoChunk, int int0, int int1, boolean[] boolean0) void
void
void
void
Remove
(IsoMovingObject obj) void
removeFromWindowList
(IsoWindow window) void
removeHeatSource
(IsoHeatSource heatSource) void
removeLamppost
(int x, int y, int z) void
removeLamppost
(IsoLightSource light) void
render()
void
renderDebugLighting
(IsoCell.PerPlayerRender perPlayerRenderx, int int1) void
renderDebugPhysics
(int int0) void
RenderFloorShading
(int zza) void
void
void
RenderSnow
(int int6) void
RenderTiles
(int _MaxHeight) void
Deprecated.void
roomSpotted
(IsoRoom room) void
save
(DataOutputStream output, boolean bDoChars) static void
setBuildings
(Stack<BuildingScore> scores) void
setCacheChunk
(IsoChunk chunk) void
setCacheChunk
(IsoChunk chunk, int playerIndex) void
setCacheGridSquare
(int x, int y, int z, IsoGridSquare square) void
setCacheGridSquareLocal
(int x, int y, int z, IsoGridSquare square, int playerIndex) void
setCurrentLightX
(int _currentLX) void
setCurrentLightY
(int _currentLY) void
setCurrentLightZ
(int _currentLZ) boolean
void
setDangerUpdate
(OnceEvery _dangerUpdate) void
setDrag
(se.krka.kahlua.vm.KahluaTable kahluaTable, int int0) void
setHeight
(int _height) void
setLightInfoUpdate
(Thread _LightInfoUpdate) void
setMaxX
(int _maxX) void
setMaxY
(int _maxY) void
setMaxZ
(int _maxZ) void
setMinX
(int _minX) void
setMinY
(int _minY) void
setMinZ
(int _minZ) void
setRainAlpha
(int alpha) void
setRainIntensity
(int intensity) void
setRainSpeed
(int speed) void
setSafeToAdd
(boolean _safeToAdd) void
setSnowTarget
(int target) void
setWidth
(int _width) void
setWorldX
(int _worldX) void
setWorldY
(int _worldY) static int
toIntColor
(float r, float g, float b, float a) void
update()
void
-
Field Details
-
CellSizeInChunks
public static int CellSizeInChunks -
CellSizeInSquares
public static int CellSizeInSquares -
MaxHeight
public static int MaxHeight -
m_floorRenderShader
-
m_wallRenderShader
-
Trees
-
minHeight
public int minHeight -
ChunkMap
-
BuildingList
-
ProcessWorldItemsRemove
-
ENABLE_SQUARE_CACHE
public static final boolean ENABLE_SQUARE_CACHE- See Also:
-
DangerScore
-
roomLights
-
addVehicles
-
vehicles
-
ISOANGLEFACTOR
public static final int ISOANGLEFACTOR- See Also:
-
ZOMBIESCANBUDGET
public static final int ZOMBIESCANBUDGET- See Also:
-
NEARESTZOMBIEDISTSQRMAX
public static final float NEARESTZOMBIEDISTSQRMAX- See Also:
-
zombieScanCursor
public int zombieScanCursor -
nearestVisibleZombie
-
nearestVisibleZombieDistSqr
public final float[] nearestVisibleZombieDistSqr -
GridStack
-
RTF_SolidFloor
public static final int RTF_SolidFloor- See Also:
-
RTF_VegetationCorpses
public static final int RTF_VegetationCorpses- See Also:
-
RTF_MinusFloorCharacters
public static final int RTF_MinusFloorCharacters- See Also:
-
RTF_ShadedFloor
public static final int RTF_ShadedFloor- See Also:
-
RTF_Shadows
public static final int RTF_Shadows- See Also:
-
ShadowSquares
-
MinusFloorCharacters
-
SolidFloor
-
ShadedFloor
-
VegetationCorpses
-
perPlayerRender
-
StencilX1
public int StencilX1 -
StencilY1
public int StencilY1 -
StencilX2
public int StencilX2 -
StencilY2
public int StencilY2 -
DeferredCharacterTick
public int DeferredCharacterTick -
recalcFloors
public boolean recalcFloors -
recalcShading
public int recalcShading -
lastMinX
public int lastMinX -
lastMinY
public int lastMinY -
rainIntensity
protected int rainIntensity -
rainSpeed
protected int rainSpeed -
lightUpdateCount
public int lightUpdateCount -
bRendering
public boolean bRendering -
bHideFloors
public final boolean[] bHideFloors -
unhideFloorsCounter
public final int[] unhideFloorsCounter -
bOccludedByOrphanStructureFlag
public boolean bOccludedByOrphanStructureFlag -
playerPeekedRoomId
public long playerPeekedRoomId -
playerOccluderBuildings
-
playerOccluderBuildingsArr
-
playerWindowPeekingRoomId
public final long[] playerWindowPeekingRoomId -
playerHidesOrphanStructures
public final boolean[] playerHidesOrphanStructures -
playerCutawaysDirty
public final boolean[] playerCutawaysDirty -
tempPlayerCutawayRoomIDs
-
lastPlayerSquare
-
lastPlayerSquareHalf
public final boolean[] lastPlayerSquareHalf -
lastPlayerDir
-
lastPlayerAngle
-
hidesOrphanStructuresAbove
public int hidesOrphanStructuresAbove -
zombieOccluderBuildings
-
zombieOccluderBuildingsArr
-
lastZombieSquare
-
lastZombieSquareHalf
public final boolean[] lastZombieSquareHalf -
otherOccluderBuildings
-
otherOccluderBuildingsArr
-
gridSquaresTempLeft
-
gridSquaresTempRight
-
minX
public int minX -
maxX
public int maxX -
minY
public int minY -
maxY
public int maxY -
minZ
public int minZ -
maxZ
public int maxZ
-
-
Constructor Details
-
IsoCell
public IsoCell(int _width, int _height)
-
-
Method Details
-
getMaxHeight
public static int getMaxHeight()- Returns:
- the MaxHeight
-
getCellSizeInChunks
public static int getCellSizeInChunks() -
getCellSizeInSquares
public static int getCellSizeInSquares() -
getCurrentLotHeader
-
getChunkMap
-
getFreeTile
-
getBuildings
- Returns:
- the getBuildings
-
setBuildings
-
getNearestVisibleZombie
-
getChunkForGridSquare
-
getChunk
-
CalculateVertColoursForTile
public void CalculateVertColoursForTile(IsoGridSquare sqThis, int x, int y, int zz, int playerIndex) -
DrawStencilMask
public void DrawStencilMask() -
RenderTiles
public void RenderTiles(int _MaxHeight) -
initTileShaders
public void initTileShaders() -
getPerPlayerRenderAt
-
flattenAnyFoliage
-
renderShadows
public void renderShadows() -
renderDebugPhysics
public void renderDebugPhysics(int int0) -
renderDebugLighting
-
RenderFloorShading
public void RenderFloorShading(int zza) -
IsPlayerWindowPeeking
public boolean IsPlayerWindowPeeking(int playerIndex) -
CanBuildingSquareOccludePlayer
-
GetEffectivePlayerRoomId
public long GetEffectivePlayerRoomId() -
SetCutawayRoomsForPlayer
public boolean SetCutawayRoomsForPlayer() -
IsCutawaySquare
-
DoesSquareHaveValidCutaways
public boolean DoesSquareHaveValidCutaways(IsoGridSquare isoGridSquare6, IsoGridSquare isoGridSquare1, int int1, long long0) -
IsCollapsibleBuildingSquare
-
collapsibleBuildingSquareAlgorithm
public boolean collapsibleBuildingSquareAlgorithm(BuildingDef buildingDef, IsoGridSquare isoGridSquare2, IsoGridSquare isoGridSquare0) -
setSnowTarget
public void setSnowTarget(int target) -
getSnowTarget
public int getSnowTarget() -
gridSquareIsSnow
public boolean gridSquareIsSnow(int x, int y, int z) -
RenderSnow
public void RenderSnow(int int6) -
getClosestBuildingExcept
-
getDangerScore
public int getDangerScore(int x, int y) -
addToProcessIsoObject
-
addToProcessIsoObjectRemove
-
addToStaticUpdaterObjectList
-
addToProcessItems
-
addToProcessItems
-
addToProcessItemsRemove
-
addToProcessItemsRemove
-
addToProcessWorldItems
-
addToProcessWorldItemsRemove
-
getNetworkPlayer
-
ConnectNewSquare
-
PlaceLot
-
PlaceLot
-
PlaceLot
-
setDrag
public void setDrag(se.krka.kahlua.vm.KahluaTable kahluaTable, int int0) -
getDrag
public se.krka.kahlua.vm.KahluaTable getDrag(int int0) -
DoBuilding
public boolean DoBuilding(int player, boolean bRender) -
DistanceFromSupport
public float DistanceFromSupport(int x, int y, int z) -
getBuildingList
- Returns:
- the BuildingList
-
getWindowList
-
addToWindowList
-
removeFromWindowList
-
getObjectList
- Returns:
- the ObjectList
-
getRoom
-
getPushableObjectList
- Returns:
- the PushableObjectList
-
getBuildingScores
- Returns:
- the BuildingScores
-
getRoomList
-
getStaticUpdaterObjectList
-
getZombieList
-
getRemoteSurvivorList
- Returns:
- the RemoteSurvivorList
-
getRemoveList
- Returns:
- the removeList
-
getAddList
- Returns:
- the addList
-
addMovingObject
-
getProcessItems
- Returns:
- the ProcessItems
-
getProcessWorldItems
-
getProcessIsoObjects
-
getProcessItemsRemove
- Returns:
- the ProcessItemsRemove
-
getVehicles
-
getHeight
public int getHeight()- Returns:
- the height
-
setHeight
public void setHeight(int _height) -
getWidth
public int getWidth()- Returns:
- the width
-
setWidth
public void setWidth(int _width) -
getWorldX
public int getWorldX()- Returns:
- the worldX
-
setWorldX
public void setWorldX(int _worldX) -
getWorldY
public int getWorldY()- Returns:
- the worldY
-
setWorldY
public void setWorldY(int _worldY) -
isSafeToAdd
public boolean isSafeToAdd()- Returns:
- the safeToAdd
-
setSafeToAdd
public void setSafeToAdd(boolean _safeToAdd) -
getLamppostPositions
- Returns:
- the LamppostPositions
-
getLightSourceAt
-
addLamppost
-
addLamppost
-
removeLamppost
public void removeLamppost(int x, int y, int z) -
removeLamppost
-
getCurrentLightX
public int getCurrentLightX()- Returns:
- the currentLX
-
setCurrentLightX
public void setCurrentLightX(int _currentLX) -
getCurrentLightY
public int getCurrentLightY()- Returns:
- the currentLY
-
setCurrentLightY
public void setCurrentLightY(int _currentLY) -
getCurrentLightZ
public int getCurrentLightZ()- Returns:
- the currentLZ
-
setCurrentLightZ
public void setCurrentLightZ(int _currentLZ) -
getMinX
public int getMinX()- Returns:
- the minX
-
setMinX
public void setMinX(int _minX) -
getMaxX
public int getMaxX()- Returns:
- the maxX
-
setMaxX
public void setMaxX(int _maxX) -
getMinY
public int getMinY()- Returns:
- the minY
-
setMinY
public void setMinY(int _minY) -
getMaxY
public int getMaxY()- Returns:
- the maxY
-
setMaxY
public void setMaxY(int _maxY) -
getMinZ
public int getMinZ()- Returns:
- the minZ
-
setMinZ
public void setMinZ(int _minZ) -
getMaxZ
public int getMaxZ()- Returns:
- the maxZ
-
setMaxZ
public void setMaxZ(int _maxZ) -
getDangerUpdate
- Returns:
- the dangerUpdate
-
setDangerUpdate
-
getLightInfoUpdate
- Returns:
- the LightInfoUpdate
-
setLightInfoUpdate
-
getSurvivorList
-
getRComponent
public static int getRComponent(int col) -
getGComponent
public static int getGComponent(int col) -
getBComponent
public static int getBComponent(int col) -
toIntColor
public static int toIntColor(float r, float g, float b, float a) -
getRandomOutdoorTile
-
getBestBuildings
-
blocked
-
Dispose
public void Dispose() -
getGridSquare
-
getOrCreateGridSquare
-
setCacheGridSquare
-
setCacheChunk
-
setCacheChunk
-
clearCacheGridSquare
public void clearCacheGridSquare(int playerIndex) -
setCacheGridSquareLocal
-
getGridSquare
-
getGridSquare
-
EnsureSurroundNotNull
public void EnsureSurroundNotNull(int xx, int yy, int zz) -
DeleteAllMovingObjects
public void DeleteAllMovingObjects() -
getMaxFloors
public int getMaxFloors() -
getLuaObjectList
public se.krka.kahlua.vm.KahluaTable getLuaObjectList() -
getHeightInTiles
public int getHeightInTiles() -
getWidthInTiles
public int getWidthInTiles() -
isNull
public boolean isNull(int x, int y, int z) -
Remove
-
getInstance
-
render
public void render() -
invalidatePeekedRoom
public void invalidatePeekedRoom(int playerIndex) -
initWeatherFx
protected boolean initWeatherFx() -
getWeatherFX
-
renderRain
public void renderRain() -
setRainAlpha
public void setRainAlpha(int alpha) -
setRainIntensity
public void setRainIntensity(int intensity) -
getRainIntensity
public int getRainIntensity() -
setRainSpeed
public void setRainSpeed(int speed) -
reloadRainTextures
public void reloadRainTextures() -
GetBuildingsInFrontOfCharacter
public void GetBuildingsInFrontOfCharacter(ArrayList<IsoBuilding> arrayList, IsoGridSquare isoGridSquare, boolean boolean0) -
GetBuildingsInFrontOfMustSeeSquare
public ArrayList<IsoBuilding> GetBuildingsInFrontOfMustSeeSquare(IsoGridSquare isoGridSquare, IsoGridOcclusionData.OcclusionFilter occlusionFilter) -
GetPeekedInBuilding
-
GetSquaresAroundPlayerSquare
public void GetSquaresAroundPlayerSquare(IsoPlayer isoPlayer, IsoGridSquare isoGridSquare0, ArrayList<IsoGridSquare> arrayList0, ArrayList<IsoGridSquare> arrayList1) -
IsBehindStuff
-
FromMouseTile
-
update
public void update() -
getRandomFreeTileInRoom
-
roomSpotted
-
ProcessSpottedRooms
public void ProcessSpottedRooms() -
addTileObject
-
save
- Throws:
IOException
-
LoadPlayer
- Throws:
FileNotFoundException
IOException
-
getRelativeGridSquare
-
createNewGridSquare
-
getGridSquareDirect
-
isInChunkMap
public boolean isInChunkMap(int x, int y) -
getProcessIsoObjectRemove
-
checkHaveRoof
public void checkHaveRoof(int x, int y) -
getFakeZombieForHit
-
addHeatSource
-
removeHeatSource
-
updateHeatSources
public void updateHeatSources() -
getHeatSourceTemperature
public int getHeatSourceTemperature(int x, int y, int z) -
getHeatSourceHighestTemperature
public float getHeatSourceHighestTemperature(float surroundingAirTemperature, int x, int y, int z) -
putInVehicle
-
resumeVehicleSounds
Deprecated. -
AddUniqueToBuildingList
-
getSpriteManager
-