Class IsoCell
java.lang.Object
zombie.iso.IsoCell
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ArrayList<BaseVehicle> final boolean[]booleanbooleanfinal ArrayList<IsoBuilding> static intstatic intfinal IsoChunkMap[]intstatic final booleanfinal ArrayList<IsoGridSquare> final ArrayList<IsoGridSquare> static ArrayList<IsoGridSquare> intstatic final intintintfinal Vector2[]final IsoDirections[]final IsoGridSquare[]final boolean[]final IsoGridSquare[]final boolean[]intstatic Shaderstatic Shaderstatic intintintintintstatic final ArrayList<IsoGridSquare> intintintfinal IsoZombie[]final float[]static final floatfinal ArrayList<ArrayList<IsoBuilding>> final IsoBuilding[][]static final IsoCell.PerPlayerRender[]final boolean[]final boolean[]final ArrayList<ArrayList<IsoBuilding>> final IsoBuilding[][]longfinal long[]final ArrayList<IsoWorldInventoryObject> booleanintfinal ArrayList<IsoRoomLight> static final intstatic final intstatic final intstatic final intstatic final intstatic final ArrayList<IsoGridSquare> static final ArrayList<IsoGridSquare> static final ArrayList<IsoGridSquare> intintintintfinal int[]static final ArrayList<IsoGridSquare> final ArrayList<BaseVehicle> final ArrayList<ArrayList<IsoBuilding>> final IsoBuilding[][]static final intint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeatSource(IsoHeatSource heatSource) addLamppost(int x, int y, int z, float r, float g, float b, int rad) voidaddLamppost(IsoLightSource light) voidaddTileObject(IsoGridSquare square, String string) voidaddToProcessIsoObject(IsoObject object) voidaddToProcessIsoObjectRemove(IsoObject object) voidaddToProcessItems(ArrayList<InventoryItem> items) voidvoidvoidvoidaddToProcessWorldItems(IsoWorldInventoryObject worldItem) voidvoidvoidaddToWindowList(IsoWindow window) voidAddUniqueToBuildingList(ArrayList<IsoBuilding> arrayList, IsoBuilding building) booleanvoidCalculateVertColoursForTile(IsoGridSquare sqThis, int x, int y, int zz, int playerIndex) booleanCanBuildingSquareOccludePlayer(IsoGridSquare square, int playerIndex) voidcheckHaveRoof(int x, int y) voidclearCacheGridSquare(int playerIndex) booleancollapsibleBuildingSquareAlgorithm(BuildingDef buildingDef, IsoGridSquare square2, IsoGridSquare square0) ConnectNewSquare(IsoGridSquare newSquare, boolean bDoSurrounds) createNewGridSquare(int x, int y, int z, boolean recalcAll) voidvoidDispose()floatDistanceFromSupport(int x, int y, int z) booleanDoBuilding(int player, boolean bRender) booleanDoesSquareHaveValidCutaways(IsoGridSquare square6, IsoGridSquare square1, int int1, long long0) voidDoGridNav(IsoGridSquare newSquare, IsoGridSquare.GetSquare getter) voidvoidEnsureSurroundNotNull(int xx, int yy, int zz) voidflattenAnyFoliage(IsoCell.PerPlayerRender perPlayerRenderx, int int3) static IsoDirectionsstatic intgetBComponent(int col) getBestBuildings(IsoCell.BuildingSearchCriteria criteria, int count) static Stack<BuildingScore> voidGetBuildingsInFrontOfCharacter(ArrayList<IsoBuilding> arrayList, IsoGridSquare square, boolean boolean0) GetBuildingsInFrontOfMustSeeSquare(IsoGridSquare square, IsoGridOcclusionData.OcclusionFilter occlusionFilter) static intstatic intgetChunk(int _wx, int _wy) getChunkForGridSquare(int x, int y, int z) getChunkMap(int pl) getClosestBuildingExcept(IsoGameCharacter chr, IsoRoom except) intintintintgetDangerScore(int x, int y) getDrag(int player) longgetFreeTile(RoomDef def) static intgetGComponent(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) floatgetHeatSourceHighestTemperature(float surroundingAirTemperature, int x, int y, int z) intgetHeatSourceTemperature(int x, int y, int z) intintstatic IsoCellgetLightSourceAt(int x, int y, int z) intstatic intintgetMaxX()intgetMaxY()intgetMaxZ()intgetMinX()intgetMinY()intgetMinZ()getNearestVisibleZombie(int playerIndex) getNetworkPlayer(int RemoteID) getOrCreateGridSquare(double x, double y, double z) GetPeekedInBuilding(IsoGridSquare square0, IsoDirections directions) getPerPlayerRenderAt(int int0) intstatic intgetRComponent(int col) getRelativeGridSquare(int x, int y, int z) getRoom(int ID) intvoidGetSquaresAroundPlayerSquare(IsoPlayer player, IsoGridSquare square0, ArrayList<IsoGridSquare> arrayList0, ArrayList<IsoGridSquare> arrayList1) intgetWidth()intintintbooleangridSquareIsSnow(int x, int y, int z) voidvoidinvalidatePeekedRoom(int playerIndex) booleanIsBehindStuff(IsoGridSquare square0) booleanbooleanIsCutawaySquare(IsoGridSquare square0, long long0) booleanisInChunkMap(int x, int y) booleanisNull(int x, int y, int z) booleanIsPlayerWindowPeeking(int playerIndex) booleanbooleanLoadPlayer(int WorldVersion) voidvoidintPlaceLot(IsoLot lot, int int7, int int9, int int3, IsoChunk chunk, int int0, int int1, boolean[] booleans) voidvoidvoidvoidRemove(IsoMovingObject obj) voidremoveFromWindowList(IsoWindow window) voidremoveHeatSource(IsoHeatSource heatSource) voidremoveLamppost(int x, int y, int z) voidremoveLamppost(IsoLightSource light) voidrender()voidrenderDebugLighting(IsoCell.PerPlayerRender perPlayerRenderx, int int1) voidrenderDebugPhysics(int int0) voidRenderFloorShading(int zza) voidvoidvoidRenderSnow(int int6) voidRenderTiles(int _MaxHeight) voidDeprecated.voidroomSpotted(IsoRoom room) voidsave(DataOutputStream output, boolean bDoChars) static voidsetBuildings(Stack<BuildingScore> scores) voidsetCacheChunk(IsoChunk chunk) voidsetCacheChunk(IsoChunk chunk, int playerIndex) voidsetCacheGridSquare(int x, int y, int z, IsoGridSquare square) voidsetCacheGridSquareLocal(int x, int y, int z, IsoGridSquare square, int playerIndex) voidsetCurrentLightX(int _currentLX) voidsetCurrentLightY(int _currentLY) voidsetCurrentLightZ(int _currentLZ) booleanvoidsetDangerUpdate(OnceEvery _dangerUpdate) voidsetDrag(KahluaTable item, int player) voidsetHeight(int _height) voidsetLightInfoUpdate(Thread _LightInfoUpdate) voidsetMaxX(int _maxX) voidsetMaxY(int _maxY) voidsetMaxZ(int _maxZ) voidsetMinX(int _minX) voidsetMinY(int _minY) voidsetMinZ(int _minZ) voidsetRainAlpha(int alpha) voidsetRainIntensity(int intensity) voidsetRainSpeed(int speed) voidsetSafeToAdd(boolean _safeToAdd) voidsetSnowTarget(int target) voidsetWidth(int _width) voidsetWorldX(int _worldX) voidsetWorldY(int _worldY) static inttoIntColor(float r, float g, float b, float a) voidupdate()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 -
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 square6, IsoGridSquare square1, int int1, long long0) -
IsCollapsibleBuildingSquare
-
collapsibleBuildingSquareAlgorithm
public boolean collapsibleBuildingSquareAlgorithm(BuildingDef buildingDef, IsoGridSquare square2, IsoGridSquare square0) -
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
-
getDrag
-
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) - Parameters:
_height- the height to set
-
getWidth
public int getWidth()- Returns:
- the width
-
setWidth
public void setWidth(int _width) - Parameters:
_width- the width to set
-
getWorldX
public int getWorldX()- Returns:
- the worldX
-
setWorldX
public void setWorldX(int _worldX) - Parameters:
_worldX- the worldX to set
-
getWorldY
public int getWorldY()- Returns:
- the worldY
-
setWorldY
public void setWorldY(int _worldY) - Parameters:
_worldY- the worldY to set
-
isSafeToAdd
public boolean isSafeToAdd()- Returns:
- the safeToAdd
-
setSafeToAdd
public void setSafeToAdd(boolean _safeToAdd) - Parameters:
_safeToAdd- the safeToAdd to set
-
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) - Parameters:
_currentLX- the currentLX to set
-
getCurrentLightY
public int getCurrentLightY()- Returns:
- the currentLY
-
setCurrentLightY
public void setCurrentLightY(int _currentLY) - Parameters:
_currentLY- the currentLY to set
-
getCurrentLightZ
public int getCurrentLightZ()- Returns:
- the currentLZ
-
setCurrentLightZ
public void setCurrentLightZ(int _currentLZ) - Parameters:
_currentLZ- the currentLZ to set
-
getMinX
public int getMinX()- Returns:
- the minX
-
setMinX
public void setMinX(int _minX) - Parameters:
_minX- the minX to set
-
getMaxX
public int getMaxX()- Returns:
- the maxX
-
setMaxX
public void setMaxX(int _maxX) - Parameters:
_maxX- the maxX to set
-
getMinY
public int getMinY()- Returns:
- the minY
-
setMinY
public void setMinY(int _minY) - Parameters:
_minY- the minY to set
-
getMaxY
public int getMaxY()- Returns:
- the maxY
-
setMaxY
public void setMaxY(int _maxY) - Parameters:
_maxY- the maxY to set
-
getMinZ
public int getMinZ()- Returns:
- the minZ
-
setMinZ
public void setMinZ(int _minZ) - Parameters:
_minZ- the minZ to set
-
getMaxZ
public int getMaxZ()- Returns:
- the maxZ
-
setMaxZ
public void setMaxZ(int _maxZ) - Parameters:
_maxZ- the maxZ to set
-
getDangerUpdate
- Returns:
- the dangerUpdate
-
setDangerUpdate
- Parameters:
_dangerUpdate- the dangerUpdate to set
-
getLightInfoUpdate
- Returns:
- the LightInfoUpdate
-
setLightInfoUpdate
- Parameters:
_LightInfoUpdate- the LightInfoUpdate to set
-
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
-
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) -
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 square, boolean boolean0) -
GetBuildingsInFrontOfMustSeeSquare
public ArrayList<IsoBuilding> GetBuildingsInFrontOfMustSeeSquare(IsoGridSquare square, IsoGridOcclusionData.OcclusionFilter occlusionFilter) -
GetPeekedInBuilding
-
GetSquaresAroundPlayerSquare
public void GetSquaresAroundPlayerSquare(IsoPlayer player, IsoGridSquare square0, ArrayList<IsoGridSquare> arrayList0, ArrayList<IsoGridSquare> arrayList1) -
IsBehindStuff
-
FromMouseTile
-
update
public void update() -
getRandomFreeTileInRoom
-
roomSpotted
-
ProcessSpottedRooms
public void ProcessSpottedRooms() -
addTileObject
-
save
- Throws:
IOException
-
LoadPlayer
- Throws:
FileNotFoundExceptionIOException
-
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
-