Package zombie.iso

Class IsoCell

java.lang.Object
zombie.core.bucket.Bucket
zombie.iso.IsoCell
All Implemented Interfaces:
TileBasedMap

public class IsoCell
extends Bucket
implements TileBasedMap
  • Field Details

    • MaxHeight

      public static int MaxHeight
    • ChunkMap

      public IsoChunkMap[] ChunkMap
    • BuildingList

      public java.util.ArrayList BuildingList
    • PathMap

      public AStarPathMap PathMap
    • ProcessWorldItemsRemove

      public java.util.ArrayList ProcessWorldItemsRemove
    • ENABLE_SQUARE_CACHE

      public static boolean ENABLE_SQUARE_CACHE
    • filename

      public java.lang.String filename
    • DangerScore

      public IntGrid DangerScore
    • roomDefs

      public java.util.ArrayList roomDefs
    • roomLights

      public java.util.ArrayList roomLights
    • addVehicles

      public java.util.ArrayList addVehicles
    • vehicles

      public java.util.ArrayList vehicles
    • ISOANGLEFACTOR

      public static final int ISOANGLEFACTOR
      See Also:
      Constant Field Values
    • RTF_MinusFloorCharacters

      public static final int RTF_MinusFloorCharacters
      See Also:
      Constant Field Values
    • RTF_SolidFloor

      public static final int RTF_SolidFloor
      See Also:
      Constant Field Values
    • RTF_VegetationCorpses

      public static final int RTF_VegetationCorpses
      See Also:
      Constant Field Values
    • RTF_ShadedFloor

      public static final int RTF_ShadedFloor
      See Also:
      Constant Field Values
    • perPlayerRender

      public static final IsoCell.PerPlayerRender[] perPlayerRender
    • StencilX1

      public int StencilX1
    • StencilY1

      public int StencilY1
    • StencilX2

      public int StencilX2
    • StencilY2

      public int StencilY2
    • newRender

      public static boolean newRender
    • DeferredCharacterTick

      public int DeferredCharacterTick
    • recalcFloors

      public boolean recalcFloors
    • bDoLotConnect

      public boolean bDoLotConnect
    • bReadAltLight

      public static boolean bReadAltLight
    • staticBlack

      public Color staticBlack
    • rainIntensity

      protected int rainIntensity
    • rainSpeed

      protected int rainSpeed
    • bSwappingLightBuffers

      public boolean bSwappingLightBuffers
    • bRendering

      public boolean bRendering
  • Constructor Details

    • IsoCell

      public IsoCell​(int int1, int int2)
    • IsoCell

      public IsoCell​(IsoSpriteManager spriteManager, int int1, int int2)
    • IsoCell

      public IsoCell​(IsoSpriteManager spriteManager, int int1, int int2, boolean boolean1)
  • Method Details

    • getMaxHeight

      public static int getMaxHeight()
    • getCurrentLotHeader

      public LotHeader getCurrentLotHeader()
    • getChunkMap

      public IsoChunkMap getChunkMap​(int int1)
    • getBarricadeDoorFrame

      public static int getBarricadeDoorFrame()
    • setBarricadeDoorFrame

      public static void setBarricadeDoorFrame​(int int1)
    • getSheetCurtains

      public static int getSheetCurtains()
    • setSheetCurtains

      public static void setSheetCurtains​(int int1)
    • getFreeTile

      public IsoGridSquare getFreeTile​(RoomDef roomDef)
    • getBuildings

      public static java.util.Stack getBuildings()
    • setBuildings

      public static void setBuildings​(java.util.Stack stack)
    • getChunkForGridSquare

      public IsoChunk getChunkForGridSquare​(int int1, int int2, int int3)
    • getChunk

      public IsoChunk getChunk​(int int1, int int2)
    • getStencilValue

      public short getStencilValue​(int int1, int int2, int int3)
    • setStencilValue

      public void setStencilValue​(int int1, int int2, int int3, int int4)
    • getStencilValue2z

      public short getStencilValue2z​(int int1, int int2, int int3)
    • setStencilValue2z

      public void setStencilValue2z​(int int1, int int2, int int3, int int4)
    • CalculateVertColoursForTile

      public void CalculateVertColoursForTile​(IsoGridSquare square, int int1, int int2, int int3, int int4)
    • ClearVertArrays

      public void ClearVertArrays()
    • DrawStencilMask

      public void DrawStencilMask()
    • RenderTiles

      public void RenderTiles​(int int1)
    • RenderFloorShading

      public void RenderFloorShading​(int int1)
    • IsPlayerWindowPeeking

      public boolean IsPlayerWindowPeeking​(int int1)
    • CanBuildingSquareOccludePlayer

      public boolean CanBuildingSquareOccludePlayer​(IsoGridSquare square, int int1)
    • setSnowParams

      public void setSnowParams​(int int1, int int2, float float1)
    • setSnowTarget

      public void setSnowTarget​(int int1)
    • RenderSnow

      public void RenderSnow​(int int1)
    • getClosestBuildingExcept

      public IsoBuilding getClosestBuildingExcept​(IsoGameCharacter gameCharacter, IsoRoom room)
    • getDangerScore

      public int getDangerScore​(int int1, int int2)
    • addToProcessIsoObject

      public void addToProcessIsoObject​(IsoObject object)
    • addToProcessItems

      public void addToProcessItems​(InventoryItem inventoryItem)
    • addToProcessItems

      public void addToProcessItems​(java.util.ArrayList arrayList)
    • addToProcessItemsRemove

      public void addToProcessItemsRemove​(InventoryItem inventoryItem)
    • addToProcessItemsRemove

      public void addToProcessItemsRemove​(java.util.ArrayList arrayList)
    • getNetworkPlayer

      public IsoSurvivor getNetworkPlayer​(int int1)
    • IsStairsNode

      public boolean IsStairsNode​(IsoGridSquare square, IsoGridSquare square2, IsoDirections directions)
      Specified by:
      IsStairsNode in interface TileBasedMap
    • InitNodeMap

      public void InitNodeMap​(int int1)
    • DoGridNav

      public void DoGridNav​(IsoGridSquare square, IsoGridSquare.GetSquare getSquare)
    • ConnectNewSquare

      public IsoGridSquare ConnectNewSquare​(IsoGridSquare square, boolean boolean1)
    • PlaceLot

      public void PlaceLot​(java.lang.String string, int int1, int int2, int int3, boolean boolean1)
    • PlaceLot

      public void PlaceLot​(IsoLot lot, int int1, int int2, int int3, boolean boolean1)
    • PlaceLot

      public void PlaceLot​(IsoLot lot, int int1, int int2, int int3, IsoChunk chunk, int int4, int int5, boolean boolean1)
    • setDrag

      public void setDrag​(KahluaTable kahluaTable, int int1)
    • getDrag

      public KahluaTable getDrag​(int int1)
    • DoBuilding

      public boolean DoBuilding​(int int1, boolean boolean1)
    • DistanceFromSupport

      public float DistanceFromSupport​(int int1, int int2, int int3)
    • getBuildingList

      public java.util.ArrayList getBuildingList()
    • setBuildingList

      public void setBuildingList​(java.util.ArrayList arrayList)
    • getObjectList

      public java.util.ArrayList getObjectList()
    • setObjectList

      public void setObjectList​(java.util.ArrayList arrayList)
    • getRoom

      public IsoRoom getRoom​(int int1)
    • getPushableObjectList

      public java.util.ArrayList getPushableObjectList()
    • setPushableObjectList

      public void setPushableObjectList​(java.util.ArrayList arrayList)
    • getBuildingScores

      public java.util.HashMap getBuildingScores()
    • setBuildingScores

      public void setBuildingScores​(java.util.HashMap hashMap)
    • getPathMap

      public AStarPathMap getPathMap()
    • setPathMap

      public void setPathMap​(AStarPathMap aStarPathMap)
    • getRoomList

      public java.util.ArrayList getRoomList()
    • setRoomList

      public void setRoomList​(java.util.ArrayList arrayList)
    • getStaticUpdaterObjectList

      public java.util.ArrayList getStaticUpdaterObjectList()
    • setStaticUpdaterObjectList

      public void setStaticUpdaterObjectList​(java.util.ArrayList arrayList)
    • getWallArray

      public java.util.ArrayList getWallArray()
    • setWallArray

      public void setWallArray​(java.util.ArrayList arrayList)
    • getZombieList

      public java.util.ArrayList getZombieList()
    • setZombieList

      public void setZombieList​(java.util.ArrayList arrayList)
    • getRemoteSurvivorList

      public java.util.ArrayList getRemoteSurvivorList()
    • setRemoteSurvivorList

      public void setRemoteSurvivorList​(java.util.ArrayList arrayList)
    • getGhostList

      public java.util.ArrayList getGhostList()
    • setGhostList

      public void setGhostList​(java.util.ArrayList arrayList)
    • getZoneStack

      public java.util.ArrayList getZoneStack()
    • setZoneStack

      public void setZoneStack​(java.util.ArrayList arrayList)
    • getRemoveList

      public java.util.ArrayList getRemoveList()
    • setRemoveList

      public void setRemoveList​(java.util.ArrayList arrayList)
    • getAddList

      public java.util.ArrayList getAddList()
    • addMovingObject

      public void addMovingObject​(IsoMovingObject movingObject)
    • setAddList

      public void setAddList​(java.util.ArrayList arrayList)
    • getRenderJobsArray

      public java.util.ArrayList getRenderJobsArray()
    • setRenderJobsArray

      public void setRenderJobsArray​(java.util.ArrayList arrayList)
    • getProcessItems

      public java.util.ArrayList getProcessItems()
    • getProcessWorldItems

      public java.util.ArrayList getProcessWorldItems()
    • getProcessIsoObjects

      public java.util.ArrayList getProcessIsoObjects()
    • setProcessItems

      public void setProcessItems​(java.util.ArrayList arrayList)
    • getProcessItemsRemove

      public java.util.ArrayList getProcessItemsRemove()
    • setProcessItemsRemove

      public void setProcessItemsRemove​(java.util.ArrayList arrayList)
    • getRenderJobsMapArray

      public java.util.HashMap getRenderJobsMapArray()
    • setRenderJobsMapArray

      public void setRenderJobsMapArray​(java.util.HashMap hashMap)
    • getVehicles

      public java.util.ArrayList getVehicles()
    • getHeight

      public int getHeight()
    • setHeight

      public void setHeight​(int int1)
    • getWidth

      public int getWidth()
    • setWidth

      public void setWidth​(int int1)
    • getWorldX

      public int getWorldX()
    • setWorldX

      public void setWorldX​(int int1)
    • getWorldY

      public int getWorldY()
    • setWorldY

      public void setWorldY​(int int1)
    • getFilename

      public java.lang.String getFilename()
    • setFilename

      public void setFilename​(java.lang.String string)
    • isSafeToAdd

      public boolean isSafeToAdd()
    • setSafeToAdd

      public void setSafeToAdd​(boolean boolean1)
    • getLamppostPositions

      public java.util.Stack getLamppostPositions()
    • addLamppost

      public void addLamppost​(IsoLightSource lightSource)
    • addLamppost

      public IsoLightSource addLamppost​(int int1, int int2, int int3, float float1, float float2, float float3, int int4)
    • removeLamppost

      public void removeLamppost​(int int1, int int2, int int3)
    • removeLamppost

      public void removeLamppost​(IsoLightSource lightSource)
    • setLamppostPositions

      public void setLamppostPositions​(java.util.Stack stack)
    • getStairsNodes

      public java.util.HashSet getStairsNodes()
    • setStairsNodes

      public void setStairsNodes​(java.util.HashSet hashSet)
    • getTempZoneStack

      public java.util.Stack getTempZoneStack()
    • setTempZoneStack

      public void setTempZoneStack​(java.util.Stack stack)
    • getCurrentLightX

      public int getCurrentLightX()
    • setCurrentLightX

      public void setCurrentLightX​(int int1)
    • getCurrentLightY

      public int getCurrentLightY()
    • setCurrentLightY

      public void setCurrentLightY​(int int1)
    • getCurrentLightZ

      public int getCurrentLightZ()
    • setCurrentLightZ

      public void setCurrentLightZ​(int int1)
    • getWoodWallN

      public IsoSprite getWoodWallN()
    • setWoodWallN

      public void setWoodWallN​(IsoSprite sprite)
    • getWoodWallW

      public IsoSprite getWoodWallW()
    • setWoodWallW

      public void setWoodWallW​(IsoSprite sprite)
    • getWoodDWallN

      public IsoSprite getWoodDWallN()
    • setWoodDWallN

      public void setWoodDWallN​(IsoSprite sprite)
    • getWoodDWallW

      public IsoSprite getWoodDWallW()
    • setWoodDWallW

      public void setWoodDWallW​(IsoSprite sprite)
    • getWoodWWallN

      public IsoSprite getWoodWWallN()
    • setWoodWWallN

      public void setWoodWWallN​(IsoSprite sprite)
    • getWoodWWallW

      public IsoSprite getWoodWWallW()
    • setWoodWWallW

      public void setWoodWWallW​(IsoSprite sprite)
    • getWoodDoorW

      public IsoSprite getWoodDoorW()
    • setWoodDoorW

      public void setWoodDoorW​(IsoSprite sprite)
    • getWoodDoorN

      public IsoSprite getWoodDoorN()
    • setWoodDoorN

      public void setWoodDoorN​(IsoSprite sprite)
    • getWoodFloor

      public IsoSprite getWoodFloor()
    • setWoodFloor

      public void setWoodFloor​(IsoSprite sprite)
    • getWoodBarricade

      public IsoSprite getWoodBarricade()
    • setWoodBarricade

      public void setWoodBarricade​(IsoSprite sprite)
    • getWoodCrate

      public IsoSprite getWoodCrate()
    • setWoodCrate

      public void setWoodCrate​(IsoSprite sprite)
    • getWoodStairsNB

      public IsoSprite getWoodStairsNB()
    • setWoodStairsNB

      public void setWoodStairsNB​(IsoSprite sprite)
    • getWoodStairsNM

      public IsoSprite getWoodStairsNM()
    • setWoodStairsNM

      public void setWoodStairsNM​(IsoSprite sprite)
    • getWoodStairsNT

      public IsoSprite getWoodStairsNT()
    • setWoodStairsNT

      public void setWoodStairsNT​(IsoSprite sprite)
    • getWoodStairsWB

      public IsoSprite getWoodStairsWB()
    • setWoodStairsWB

      public void setWoodStairsWB​(IsoSprite sprite)
    • getWoodStairsWM

      public IsoSprite getWoodStairsWM()
    • setWoodStairsWM

      public void setWoodStairsWM​(IsoSprite sprite)
    • getWoodStairsWT

      public IsoSprite getWoodStairsWT()
    • setWoodStairsWT

      public void setWoodStairsWT​(IsoSprite sprite)
    • getMinX

      public int getMinX()
    • setMinX

      public void setMinX​(int int1)
    • getMaxX

      public int getMaxX()
    • setMaxX

      public void setMaxX​(int int1)
    • getMinY

      public int getMinY()
    • setMinY

      public void setMinY​(int int1)
    • getMaxY

      public int getMaxY()
    • setMaxY

      public void setMaxY​(int int1)
    • getMinZ

      public int getMinZ()
    • setMinZ

      public void setMinZ​(int int1)
    • getMaxZ

      public int getMaxZ()
    • setMaxZ

      public void setMaxZ​(int int1)
    • getDangerUpdate

      public OnceEvery getDangerUpdate()
    • setDangerUpdate

      public void setDangerUpdate​(OnceEvery onceEvery)
    • getLightInfoUpdate

      public java.lang.Thread getLightInfoUpdate()
    • setLightInfoUpdate

      public void setLightInfoUpdate​(java.lang.Thread thread)
    • getSurvivorList

      public java.util.ArrayList getSurvivorList()
    • getRComponent

      public static int getRComponent​(int int1)
    • getGComponent

      public static int getGComponent​(int int1)
    • getBComponent

      public static int getBComponent​(int int1)
    • toIntColor

      public static int toIntColor​(float float1, float float2, float float3, float float4)
    • getRandomOutdoorTile

      public IsoGridSquare getRandomOutdoorTile()
    • getBestBuildings

      public java.util.Stack getBestBuildings​(IsoCell.BuildingSearchCriteria buildingSearchCriteria, int int1)
    • AddZone

      public void AddZone​(java.lang.String string, int int1, int int2, int int3, int int4, int int5)
    • blocked

      public boolean blocked​(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
      Specified by:
      blocked in interface TileBasedMap
    • Dispose

      public void Dispose()
      Overrides:
      Dispose in class Bucket
    • getCost

      public float getCost​(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
      Specified by:
      getCost in interface TileBasedMap
    • getElevInTiles

      public int getElevInTiles()
      Specified by:
      getElevInTiles in interface TileBasedMap
    • getFreeTile

      public IsoGridSquare getFreeTile​(java.lang.String string)
    • getFreeTile

      public IsoGridSquare getFreeTile​(IsoCell.Zone zone)
    • getGridSquare

      public IsoGridSquare getGridSquare​(double double1, double double2, double double3)
    • getOrCreateGridSquare

      public IsoGridSquare getOrCreateGridSquare​(double double1, double double2, double double3)
    • setCacheGridSquare

      public void setCacheGridSquare​(int int1, int int2, int int3, IsoGridSquare square)
    • setCacheChunk

      public void setCacheChunk​(IsoChunk chunk)
    • clearCacheGridSquare

      public void clearCacheGridSquare​(int int1)
    • setCacheGridSquareLocal

      public void setCacheGridSquareLocal​(int int1, int int2, int int3, IsoGridSquare square, int int4)
    • getGridSquare

      public IsoGridSquare getGridSquare​(java.lang.Double Double1, java.lang.Double Double2, java.lang.Double Double3)
    • getGridSquare

      public IsoGridSquare getGridSquare​(int int1, int int2, int int3)
    • EnsureSurroundNotNull

      public void EnsureSurroundNotNull​(int int1, int int2, int int3)
    • DeleteAllMovingObjects

      public void DeleteAllMovingObjects()
    • getMaxFloors

      public int getMaxFloors()
    • getLuaObjectList

      public KahluaTable getLuaObjectList()
    • getHeightInTiles

      public int getHeightInTiles()
      Specified by:
      getHeightInTiles in interface TileBasedMap
    • getWidthInTiles

      public int getWidthInTiles()
      Specified by:
      getWidthInTiles in interface TileBasedMap
    • isNull

      public boolean isNull​(int int1, int int2, int int3)
      Specified by:
      isNull in interface TileBasedMap
    • IsZone

      public boolean IsZone​(java.lang.String string, int int1, int int2)
    • pathFinderVisited

      public void pathFinderVisited​(int int1, int int2, int int3)
      Specified by:
      pathFinderVisited in interface TileBasedMap
    • Remove

      public void Remove​(IsoMovingObject movingObject)
    • stopLightingThread

      public void stopLightingThread()
    • initLightingThread

      public void initLightingThread()
    • render

      public void render()
    • getWeatherFX

      public IsoWeatherFX getWeatherFX()
    • setRainAlpha

      public void setRainAlpha​(int int1)
    • setRainIntensity

      public void setRainIntensity​(int int1)
    • setRainSpeed

      public void setRainSpeed​(int int1)
    • reloadRainTextures

      public void reloadRainTextures()
    • FromMouseTile

      public static IsoDirections FromMouseTile()
    • renderListClear

      public void renderListClear()
    • update

      public void update()
    • getRandomFreeTileInRoom

      public IsoGridSquare getRandomFreeTileInRoom()
    • roomSpotted

      public void roomSpotted​(IsoRoom room)
    • ProcessSpottedRooms

      public void ProcessSpottedRooms()
    • savePlayer

      public void savePlayer() throws java.io.IOException
      Throws:
      java.io.IOException
    • save

      public void save​(java.io.DataOutputStream dataOutputStream, boolean boolean1) throws java.io.IOException
      Throws:
      java.io.IOException
    • LoadPlayer

      public boolean LoadPlayer​(int int1) throws java.io.FileNotFoundException, java.io.IOException
      Throws:
      java.io.FileNotFoundException
      java.io.IOException
    • load

      public void load​(java.io.DataInputStream dataInputStream, boolean boolean1) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
      Throws:
      java.io.FileNotFoundException
      java.io.IOException
      java.lang.ClassNotFoundException
    • getRelativeGridSquare

      public IsoGridSquare getRelativeGridSquare​(int int1, int int2, int int3)
    • createNewGridSquare

      public IsoGridSquare createNewGridSquare​(int int1, int int2, int int3, boolean boolean1)
    • getGridSquareDirect

      public IsoGridSquare getGridSquareDirect​(int int1, int int2, int int3, int int4)
    • isInChunkMap

      public boolean isInChunkMap​(int int1, int int2)
    • getProcessIsoObjectRemove

      public java.util.ArrayList getProcessIsoObjectRemove()
    • setProcessIsoObjectRemove

      public void setProcessIsoObjectRemove​(java.util.ArrayList arrayList)
    • checkHaveRoof

      public void checkHaveRoof​(int int1, int int2)
    • 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 int1, int int2, int int3)
    • getHeatSourceHighestTemperature

      public float getHeatSourceHighestTemperature​(float float1, int int1, int int2, int int3)
    • putInVehicle

      public void putInVehicle​(IsoGameCharacter gameCharacter)
    • resumeVehicleSounds

      @Deprecated public void resumeVehicleSounds​(IsoGameCharacter gameCharacter)
      Deprecated.