Package zombie.iso

Class IsoCell

java.lang.Object
zombie.iso.IsoCell

public final class IsoCell extends Object
  • Field Details

  • Constructor Details

    • IsoCell

      public IsoCell(int width, int height)
  • Method Details

    • getMaxHeight

      public static int getMaxHeight()
      Returns:
      the MaxHeight
    • 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)
    • getStencilValue

      public short getStencilValue(int x, int y, int z)
    • setStencilValue

      public void setStencilValue(int x, int y, int z, int stencil)
    • getStencilValue2z

      public short getStencilValue2z(int x, int y, int z)
    • setStencilValue2z

      public void setStencilValue2z(int x, int y, int z, int stencil)
    • CalculateVertColoursForTile

      public void CalculateVertColoursForTile(IsoGridSquare sqThis, int x, int y, int zz, int playerIndex)
    • DrawStencilMask

      public void DrawStencilMask()
    • RenderTiles

      public void RenderTiles(int MaxHeight)
    • RenderFloorShading

      public void RenderFloorShading(int zza)
    • IsPlayerWindowPeeking

      public boolean IsPlayerWindowPeeking(int playerIndex)
    • CanBuildingSquareOccludePlayer

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

      public int GetEffectivePlayerRoomId()
    • setSnowTarget

      public void setSnowTarget(int target)
    • gridSquareIsSnow

      public boolean gridSquareIsSnow(int x, int y, int z)
    • 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 void PlaceLot(IsoLot lot, int sx, int sy, int sz, IsoChunk ch, int WX, int WY)
    • setDrag

      public void setDrag(se.krka.kahlua.vm.KahluaTable item, int player)
    • getDrag

      public se.krka.kahlua.vm.KahluaTable getDrag(int player)
    • 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)
      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

      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)
      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

      public OnceEvery getDangerUpdate()
      Returns:
      the dangerUpdate
    • setDangerUpdate

      public void setDangerUpdate(OnceEvery dangerUpdate)
      Parameters:
      dangerUpdate - the dangerUpdate to set
    • getLightInfoUpdate

      public Thread getLightInfoUpdate()
      Returns:
      the LightInfoUpdate
    • setLightInfoUpdate

      public void setLightInfoUpdate(Thread LightInfoUpdate)
      Parameters:
      LightInfoUpdate - the LightInfoUpdate to set
    • 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)
    • getWeatherFX

      public IsoWeatherFX getWeatherFX()
    • setRainAlpha

      public void setRainAlpha(int alpha)
    • setRainIntensity

      public void setRainIntensity(int intensity)
    • setRainSpeed

      public void setRainSpeed(int speed)
    • reloadRainTextures

      public void reloadRainTextures()
    • FromMouseTile

      public static IsoDirections FromMouseTile()
    • update

      public void update()
    • getRandomFreeTileInRoom

      public IsoGridSquare getRandomFreeTileInRoom()
    • roomSpotted

      public void roomSpotted(IsoRoom room)
    • ProcessSpottedRooms

      public void ProcessSpottedRooms()
    • savePlayer

      public void savePlayer() throws IOException
      Throws:
      IOException
    • 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.
    • getSpriteManager

      public IsoSpriteManager getSpriteManager()