Package zombie.iso
Class IsoCell
java.lang.Object
zombie.iso.IsoCell
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static final class
-
Field Summary
Modifier and TypeFieldDescriptionfinal ArrayList<BaseVehicle>
boolean
final ArrayList<IsoBuilding>
final IsoChunkMap[]
int
static final boolean
static final int
static int
static final IsoCell.PerPlayerRender[]
final ArrayList<IsoWorldInventoryObject>
boolean
final ArrayList<IsoRoomLight>
static final int
static final int
static final int
static final int
static final int
int
int
int
int
final ArrayList<BaseVehicle>
-
Constructor Summary
-
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
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) 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) 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) void
DoGridNav
(IsoGridSquare newSquare, IsoGridSquare.GetSquare getter) void
void
EnsureSurroundNotNull
(int xx, int yy, int zz) static IsoDirections
static int
getBComponent
(int col) getBestBuildings
(IsoCell.BuildingSearchCriteria criteria, int count) static Stack<BuildingScore>
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 player) int
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) static int
getRComponent
(int col) getRelativeGridSquare
(int x, int y, int z) getRoom
(int ID) short
getStencilValue
(int x, int y, int z) short
getStencilValue2z
(int x, int y, int z) int
getWidth()
int
int
int
boolean
gridSquareIsSnow
(int x, int y, int z) void
invalidatePeekedRoom
(int playerIndex) 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
void
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
RenderFloorShading
(int zza) void
RenderTiles
(int MaxHeight) void
Deprecated.void
roomSpotted
(IsoRoom room) void
save
(DataOutputStream output, boolean bDoChars) void
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) void
setDangerUpdate
(OnceEvery dangerUpdate) void
setDrag
(se.krka.kahlua.vm.KahluaTable item, int player) 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
setStencilValue
(int x, int y, int z, int stencil) void
setStencilValue2z
(int x, int y, int z, int stencil) 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
-
MaxHeight
public static int MaxHeight -
Trees
-
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:
-
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:
-
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 -
bRendering
public boolean bRendering
-
-
Constructor Details
-
IsoCell
public IsoCell(int width, int height)
-
-
Method Details
-
getMaxHeight
public static int getMaxHeight()- Returns:
- the MaxHeight
-
getCurrentLotHeader
-
getChunkMap
-
getFreeTile
-
getBuildings
- Returns:
- the getBuildings
-
setBuildings
-
getNearestVisibleZombie
-
getChunkForGridSquare
-
getChunk
-
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
-
GetEffectivePlayerRoomId
public int GetEffectivePlayerRoomId() -
setSnowTarget
public void setSnowTarget(int target) -
gridSquareIsSnow
public boolean gridSquareIsSnow(int x, int y, int z) -
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 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
- Returns:
- the BuildingList
-
getWindowList
-
addToWindowList
-
removeFromWindowList
-
getObjectList
- Returns:
- the ObjectList
-
getRoom
-
getPushableObjectList
- Returns:
- the PushableObjectList
-
getBuildingScores
- Returns:
- the BuildingScores
-
getRoomList
- Returns:
- the RoomList
-
getStaticUpdaterObjectList
- Returns:
- the StaticUpdaterObjectList
-
getZombieList
- Returns:
- the ZombieList
-
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
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) -
getWeatherFX
-
setRainAlpha
public void setRainAlpha(int alpha) -
setRainIntensity
public void setRainIntensity(int intensity) -
setRainSpeed
public void setRainSpeed(int speed) -
reloadRainTextures
public void reloadRainTextures() -
FromMouseTile
-
update
public void update() -
getRandomFreeTileInRoom
-
roomSpotted
-
ProcessSpottedRooms
public void ProcessSpottedRooms() -
savePlayer
- Throws:
IOException
-
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. -
getSpriteManager
-