Class IsoCell

java.lang.Object
zombie.iso.IsoCell

public final class IsoCell extends Object
  • Field Details

    • CellSizeInChunks

      public static int CellSizeInChunks
    • CellSizeInSquares

      public static int CellSizeInSquares
    • MaxHeight

      public static int MaxHeight
    • m_floorRenderShader

      public static Shader m_floorRenderShader
    • m_wallRenderShader

      public static Shader m_wallRenderShader
    • Trees

      public ArrayList<IsoGridSquare> Trees
    • minHeight

      public int minHeight
    • ChunkMap

      public final IsoChunkMap[] ChunkMap
    • BuildingList

      public final ArrayList<IsoBuilding> BuildingList
    • ProcessWorldItemsRemove

      public final ArrayList<IsoWorldInventoryObject> ProcessWorldItemsRemove
    • ENABLE_SQUARE_CACHE

      public static final boolean ENABLE_SQUARE_CACHE
      See Also:
    • DangerScore

      public IntGrid DangerScore
    • roomLights

      public final ArrayList<IsoRoomLight> roomLights
    • addVehicles

      public final ArrayList<BaseVehicle> addVehicles
    • vehicles

      public final ArrayList<BaseVehicle> 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

      public final IsoZombie[] nearestVisibleZombie
    • nearestVisibleZombieDistSqr

      public final float[] nearestVisibleZombieDistSqr
    • GridStack

      public static ArrayList<IsoGridSquare> 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

      public static final ArrayList<IsoGridSquare> ShadowSquares
    • MinusFloorCharacters

      public static final ArrayList<IsoGridSquare> MinusFloorCharacters
    • SolidFloor

      public static final ArrayList<IsoGridSquare> SolidFloor
    • ShadedFloor

      public static final ArrayList<IsoGridSquare> ShadedFloor
    • VegetationCorpses

      public static final ArrayList<IsoGridSquare> VegetationCorpses
    • perPlayerRender

      public static final IsoCell.PerPlayerRender[] 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

      public final ArrayList<ArrayList<IsoBuilding>> playerOccluderBuildings
    • playerOccluderBuildingsArr

      public final IsoBuilding[][] playerOccluderBuildingsArr
    • playerWindowPeekingRoomId

      public final long[] playerWindowPeekingRoomId
    • playerHidesOrphanStructures

      public final boolean[] playerHidesOrphanStructures
    • playerCutawaysDirty

      public final boolean[] playerCutawaysDirty
    • tempPlayerCutawayRoomIDs

      public ArrayList<ArrayList<Long>> tempPlayerCutawayRoomIDs
    • lastPlayerSquare

      public final IsoGridSquare[] lastPlayerSquare
    • lastPlayerSquareHalf

      public final boolean[] lastPlayerSquareHalf
    • lastPlayerDir

      public final IsoDirections[] lastPlayerDir
    • lastPlayerAngle

      public final Vector2[] lastPlayerAngle
    • hidesOrphanStructuresAbove

      public int hidesOrphanStructuresAbove
    • zombieOccluderBuildings

      public final ArrayList<ArrayList<IsoBuilding>> zombieOccluderBuildings
    • zombieOccluderBuildingsArr

      public final IsoBuilding[][] zombieOccluderBuildingsArr
    • lastZombieSquare

      public final IsoGridSquare[] lastZombieSquare
    • lastZombieSquareHalf

      public final boolean[] lastZombieSquareHalf
    • otherOccluderBuildings

      public final ArrayList<ArrayList<IsoBuilding>> otherOccluderBuildings
    • otherOccluderBuildingsArr

      public final IsoBuilding[][] otherOccluderBuildingsArr
    • gridSquaresTempLeft

      public final ArrayList<IsoGridSquare> gridSquaresTempLeft
    • gridSquaresTempRight

      public final ArrayList<IsoGridSquare> 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

      public LotHeader getCurrentLotHeader()
    • getChunkMap

      public IsoChunkMap getChunkMap(int pl)
    • getFreeTile

      public IsoGridSquare getFreeTile(RoomDef def)
    • getBuildings

      public static Stack<BuildingScore> getBuildings()
      Returns:
      the getBuildings
    • setBuildings

      public static void setBuildings(Stack<BuildingScore> scores)
    • getNearestVisibleZombie

      public IsoZombie getNearestVisibleZombie(int playerIndex)
    • getChunkForGridSquare

      public IsoChunk getChunkForGridSquare(int x, int y, int z)
    • getChunk

      public IsoChunk getChunk(int _wx, int _wy)
    • 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

      public IsoCell.PerPlayerRender getPerPlayerRenderAt(int int0)
    • flattenAnyFoliage

      public void flattenAnyFoliage(IsoCell.PerPlayerRender perPlayerRenderx, int int3)
    • renderShadows

      public void renderShadows()
    • renderDebugPhysics

      public void renderDebugPhysics(int int0)
    • renderDebugLighting

      public void renderDebugLighting(IsoCell.PerPlayerRender perPlayerRenderx, int int1)
    • RenderFloorShading

      public void RenderFloorShading(int zza)
    • IsPlayerWindowPeeking

      public boolean IsPlayerWindowPeeking(int playerIndex)
    • CanBuildingSquareOccludePlayer

      public boolean CanBuildingSquareOccludePlayer(IsoGridSquare square, int playerIndex)
    • GetEffectivePlayerRoomId

      public long GetEffectivePlayerRoomId()
    • SetCutawayRoomsForPlayer

      public boolean SetCutawayRoomsForPlayer()
    • IsCutawaySquare

      public boolean IsCutawaySquare(IsoGridSquare isoGridSquare0, long long0)
    • DoesSquareHaveValidCutaways

      public boolean DoesSquareHaveValidCutaways(IsoGridSquare isoGridSquare6, IsoGridSquare isoGridSquare1, int int1, long long0)
    • IsCollapsibleBuildingSquare

      public boolean IsCollapsibleBuildingSquare(IsoGridSquare isoGridSquare)
    • 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

      public IsoBuilding getClosestBuildingExcept(IsoGameCharacter chr, IsoRoom except)
    • getDangerScore

      public int getDangerScore(int x, int y)
    • addToProcessIsoObject

      public void addToProcessIsoObject(IsoObject object)
    • addToProcessIsoObjectRemove

      public void addToProcessIsoObjectRemove(IsoObject object)
    • addToStaticUpdaterObjectList

      public void addToStaticUpdaterObjectList(IsoObject object)
    • addToProcessItems

      public void addToProcessItems(InventoryItem item)
    • addToProcessItems

      public void addToProcessItems(ArrayList<InventoryItem> items)
    • addToProcessItemsRemove

      public void addToProcessItemsRemove(InventoryItem item)
    • addToProcessItemsRemove

      public void addToProcessItemsRemove(ArrayList<InventoryItem> items)
    • addToProcessWorldItems

      public void addToProcessWorldItems(IsoWorldInventoryObject worldItem)
    • addToProcessWorldItemsRemove

      public void addToProcessWorldItemsRemove(IsoWorldInventoryObject worldItem)
    • getNetworkPlayer

      public IsoSurvivor getNetworkPlayer(int RemoteID)
    • DoGridNav

      public void DoGridNav(IsoGridSquare newSquare, IsoGridSquare.GetSquare getter)
    • ConnectNewSquare

      public IsoGridSquare ConnectNewSquare(IsoGridSquare newSquare, boolean bDoSurrounds)
    • PlaceLot

      public void PlaceLot(String filename, int sx, int sy, int sz, boolean bClearExisting)
    • PlaceLot

      public void PlaceLot(IsoLot lot, int sx, int sy, int sz, boolean bClearExisting)
    • PlaceLot

      public int PlaceLot(IsoLot isoLot, int int7, int int9, int int3, IsoChunk isoChunk, int int0, int int1, boolean[] boolean0)
    • 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

      public ArrayList<IsoBuilding> getBuildingList()
      Returns:
      the BuildingList
    • getWindowList

      public ArrayList<IsoWindow> getWindowList()
    • addToWindowList

      public void addToWindowList(IsoWindow window)
    • removeFromWindowList

      public void removeFromWindowList(IsoWindow window)
    • getObjectList

      public ArrayList<IsoMovingObject> getObjectList()
      Returns:
      the ObjectList
    • getRoom

      public IsoRoom getRoom(int ID)
    • getPushableObjectList

      public ArrayList<IsoPushableObject> getPushableObjectList()
      Returns:
      the PushableObjectList
    • getBuildingScores

      public HashMap<Integer,BuildingScore> getBuildingScores()
      Returns:
      the BuildingScores
    • getRoomList

      public ArrayList<IsoRoom> getRoomList()
      Returns:
      the RoomList
    • getStaticUpdaterObjectList

      public ArrayList<IsoObject> getStaticUpdaterObjectList()
      Returns:
      the StaticUpdaterObjectList
    • getZombieList

      public ArrayList<IsoZombie> getZombieList()
      Returns:
      the ZombieList
    • getRemoteSurvivorList

      public ArrayList<IsoGameCharacter> getRemoteSurvivorList()
      Returns:
      the RemoteSurvivorList
    • getRemoveList

      public ArrayList<IsoMovingObject> getRemoveList()
      Returns:
      the removeList
    • getAddList

      public ArrayList<IsoMovingObject> getAddList()
      Returns:
      the addList
    • addMovingObject

      public void addMovingObject(IsoMovingObject o)
    • getProcessItems

      public ArrayList<InventoryItem> getProcessItems()
      Returns:
      the ProcessItems
    • getProcessWorldItems

      public ArrayList<IsoWorldInventoryObject> getProcessWorldItems()
    • getProcessIsoObjects

      public ArrayList<IsoObject> getProcessIsoObjects()
    • getProcessItemsRemove

      public ArrayList<InventoryItem> getProcessItemsRemove()
      Returns:
      the ProcessItemsRemove
    • getVehicles

      public ArrayList<BaseVehicle> 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

      public Stack<IsoLightSource> getLamppostPositions()
      Returns:
      the LamppostPositions
    • getLightSourceAt

      public IsoLightSource getLightSourceAt(int x, int y, int z)
    • addLamppost

      public void addLamppost(IsoLightSource light)
    • addLamppost

      public IsoLightSource addLamppost(int x, int y, int z, float r, float g, float b, int rad)
    • removeLamppost

      public void removeLamppost(int x, int y, int z)
    • removeLamppost

      public void removeLamppost(IsoLightSource light)
    • 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

      public OnceEvery getDangerUpdate()
      Returns:
      the dangerUpdate
    • setDangerUpdate

      public void setDangerUpdate(OnceEvery _dangerUpdate)
    • getLightInfoUpdate

      public Thread getLightInfoUpdate()
      Returns:
      the LightInfoUpdate
    • setLightInfoUpdate

      public void setLightInfoUpdate(Thread _LightInfoUpdate)
    • getSurvivorList

      public ArrayList<IsoSurvivor> 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

      public IsoGridSquare getRandomOutdoorTile()
    • getBestBuildings

      public Stack<BuildingScore> getBestBuildings(IsoCell.BuildingSearchCriteria criteria, int count)
    • blocked

      public boolean blocked(Mover mover, int x, int y, int z, int lx, int ly, int lz)
    • Dispose

      public void Dispose()
    • getGridSquare

      public IsoGridSquare getGridSquare(double x, double y, double z)
    • getOrCreateGridSquare

      public IsoGridSquare getOrCreateGridSquare(double x, double y, double z)
    • setCacheGridSquare

      public void setCacheGridSquare(int x, int y, int z, IsoGridSquare square)
    • setCacheChunk

      public void setCacheChunk(IsoChunk chunk)
    • setCacheChunk

      public void setCacheChunk(IsoChunk chunk, int playerIndex)
    • clearCacheGridSquare

      public void clearCacheGridSquare(int playerIndex)
    • setCacheGridSquareLocal

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

      public IsoGridSquare getGridSquare(Double x, Double y, Double z)
    • getGridSquare

      public IsoGridSquare getGridSquare(int x, int y, int z)
    • 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

      public void Remove(IsoMovingObject obj)
    • getInstance

      public static IsoCell getInstance()
    • render

      public void render()
    • invalidatePeekedRoom

      public void invalidatePeekedRoom(int playerIndex)
    • initWeatherFx

      protected boolean initWeatherFx()
    • getWeatherFX

      public IsoWeatherFX 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

      public IsoBuilding GetPeekedInBuilding(IsoGridSquare isoGridSquare0, IsoDirections isoDirections)
    • GetSquaresAroundPlayerSquare

      public void GetSquaresAroundPlayerSquare(IsoPlayer isoPlayer, IsoGridSquare isoGridSquare0, ArrayList<IsoGridSquare> arrayList0, ArrayList<IsoGridSquare> arrayList1)
    • IsBehindStuff

      public boolean IsBehindStuff(IsoGridSquare isoGridSquare0)
    • FromMouseTile

      public static IsoDirections FromMouseTile()
    • update

      public void update()
    • getRandomFreeTileInRoom

      public IsoGridSquare getRandomFreeTileInRoom()
    • roomSpotted

      public void roomSpotted(IsoRoom room)
    • ProcessSpottedRooms

      public void ProcessSpottedRooms()
    • addTileObject

      public IsoObject addTileObject(IsoGridSquare isoGridSquare, String string)
    • save

      public void save(DataOutputStream output, boolean bDoChars) throws IOException
      Throws:
      IOException
    • LoadPlayer

      public boolean LoadPlayer(int WorldVersion) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • getRelativeGridSquare

      public IsoGridSquare getRelativeGridSquare(int x, int y, int z)
    • createNewGridSquare

      public IsoGridSquare createNewGridSquare(int x, int y, int z, boolean recalcAll)
    • getGridSquareDirect

      public IsoGridSquare getGridSquareDirect(int x, int y, int z, int playerIndex)
    • isInChunkMap

      public boolean isInChunkMap(int x, int y)
    • getProcessIsoObjectRemove

      public ArrayList<IsoObject> getProcessIsoObjectRemove()
    • checkHaveRoof

      public void checkHaveRoof(int x, int y)
    • getFakeZombieForHit

      public IsoZombie getFakeZombieForHit()
    • addHeatSource

      public void addHeatSource(IsoHeatSource heatSource)
    • removeHeatSource

      public void removeHeatSource(IsoHeatSource heatSource)
    • 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

      public void putInVehicle(IsoGameCharacter chr)
    • resumeVehicleSounds

      @Deprecated public void resumeVehicleSounds(IsoGameCharacter chr)
      Deprecated.
    • AddUniqueToBuildingList

      public void AddUniqueToBuildingList(ArrayList<IsoBuilding> arrayList, IsoBuilding isoBuilding)
    • getSpriteManager

      public IsoSpriteManager getSpriteManager()