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
- Author:
- LEMMY
Method Summary |
void |
addMovingObject(IsoMovingObject o)
|
void |
AddZone(java.lang.String name,
int tileX,
int tileY,
int tileW,
int tileH,
int Z)
|
boolean |
blocked(Mover mover,
int x,
int y,
int z,
int lx,
int ly,
int lz)
Check if the given location is blocked, i.e. |
void |
CalcLightInfos(int MaxHeight)
|
void |
CalculateVertColoursForTile(IsoGridSquare sqThis,
int x,
int y,
int zz)
|
void |
CalculateVertShading(int ma)
|
void |
ClearVertArrays()
|
IsoGridSquare |
ConnectNewSquare(IsoGridSquare newSquare,
boolean bDoSurrounds)
|
IsoGridSquare |
createNewGridSquare(int x,
int y,
int z)
|
void |
DeleteAllMovingObjects()
|
void |
Dispose()
|
float |
DistanceFromSupport(int x,
int y,
int z)
|
boolean |
DoBuilding(boolean bRender)
|
void |
DrawStencilMask()
|
static IsoDirections |
FromMouseTile()
|
java.util.ArrayList<IsoMovingObject> |
getAddList()
|
static int |
getBarricadeDoorFrame()
|
static int |
getBComponent(int col)
|
java.util.Stack<BuildingScore> |
getBestBuildings(IsoCell.BuildingSearchCriteria criteria,
int count)
|
java.util.ArrayList<IsoBuilding> |
getBuildingList()
|
static java.util.Stack<BuildingScore> |
getBuildings()
|
gnu.trove.map.hash.THashMap<java.lang.Integer,BuildingScore> |
getBuildingScores()
|
IsoChunk |
getChunkForGridSquare(int x,
int y,
int z)
|
IsoBuilding |
getClosestBuildingExcept(IsoGameCharacter chr,
IsoRoom except)
|
java.util.Stack<ItemContainer> |
getContainers()
|
float |
getCost(Mover mover,
int sx,
int sy,
int sz,
int tx,
int ty,
int tz)
get the cost of moving through the given tile. |
int |
getCurrentLightX()
|
int |
getCurrentLightY()
|
int |
getCurrentLightZ()
|
LotHeader |
getCurrentLotHeader()
|
int |
getDangerScore(int x,
int y)
|
OnceEvery |
getDangerUpdate()
|
se.krka.kahlua.vm.KahluaTable |
getDrag()
|
int |
getElevInTiles()
|
java.lang.String |
getFilename()
|
IsoGridSquare |
getFreeTile(IsoCell.Zone zone)
|
IsoGridSquare |
getFreeTile(RoomDef def)
|
IsoGridSquare |
getFreeTile(java.lang.String zone)
|
static int |
getGComponent(int col)
|
java.util.ArrayList<IsoZombie> |
getGhostList()
|
IsoGridSquare |
getGridSquare(double x,
double y,
double z)
|
IsoGridSquare |
getGridSquare(int x,
int y,
int z)
|
int |
getHeight()
|
int |
getHeightInTiles()
get the height of the tile map. |
java.util.Stack<IsoLightSource> |
getLamppostPositions()
|
java.lang.Thread |
getLightInfoUpdate()
|
se.krka.kahlua.vm.KahluaTable |
getLuaObjectList()
|
int |
getMaxFloors()
|
static int |
getMaxHeight()
|
int |
getMaxX()
|
int |
getMaxY()
|
int |
getMaxZ()
|
int |
getMinX()
|
int |
getMinY()
|
int |
getMinZ()
|
IsoSurvivor |
getNetworkPlayer(int RemoteID)
|
java.util.ArrayList<IsoMovingObject> |
getObjectList()
|
IsoGridSquare |
getOrCreateGridSquare(double x,
double y,
double z)
|
AStarPathMap |
getPathMap()
|
java.util.ArrayList<InventoryItem> |
getProcessItems()
|
java.util.ArrayList<InventoryItem> |
getProcessItemsRemove()
|
java.util.ArrayList<IsoPushableObject> |
getPushableObjectList()
|
IsoGridSquare |
getRandomFreeTileInRoom()
|
IsoGridSquare |
getRandomOutdoorTile()
|
static int |
getRComponent(int col)
|
IsoGridSquare |
getRelativeGridSquare(int x,
int y,
int z)
|
java.util.ArrayList<IsoGameCharacter> |
getRemoteSurvivorList()
|
java.util.ArrayList<IsoMovingObject> |
getRemoveList()
|
java.util.ArrayList<java.util.ArrayList<IsoObject>> |
getRenderJobsArray()
|
gnu.trove.map.hash.THashMap<java.lang.Integer,java.lang.Integer> |
getRenderJobsMapArray()
|
IsoRoom |
getRoom(int ID)
|
java.util.ArrayList<IsoRoom> |
getRoomList()
|
static int |
getSheetCurtains()
|
java.util.HashSet<java.lang.Integer> |
getStairsNodes()
|
java.util.ArrayList<IsoObject> |
getStaticUpdaterObjectList()
|
java.util.ArrayList<IsoSurvivor> |
getSurvivorList()
|
java.util.Stack<IsoCell.Zone> |
getTempZoneStack()
|
java.util.ArrayList<java.lang.Integer> |
getWallArray()
|
int |
getWidth()
|
int |
getWidthInTiles()
get the width of the tile map. |
IsoSprite |
getWoodBarricade()
|
IsoSprite |
getWoodCrate()
|
IsoSprite |
getWoodDoorN()
|
IsoSprite |
getWoodDoorW()
|
IsoSprite |
getWoodDWallN()
|
IsoSprite |
getWoodDWallW()
|
IsoSprite |
getWoodFloor()
|
IsoSprite |
getWoodStairsNB()
|
IsoSprite |
getWoodStairsNM()
|
IsoSprite |
getWoodStairsNT()
|
IsoSprite |
getWoodStairsWB()
|
IsoSprite |
getWoodStairsWM()
|
IsoSprite |
getWoodStairsWT()
|
IsoSprite |
getWoodWallN()
|
IsoSprite |
getWoodWallW()
|
IsoSprite |
getWoodWWallN()
|
IsoSprite |
getWoodWWallW()
|
int |
getWorldX()
|
int |
getWorldY()
|
java.util.ArrayList<IsoZombie> |
getZombieList()
|
java.util.ArrayList<IsoCell.Zone> |
getZoneStack()
|
void |
initLightingThread()
|
void |
InitNodeMap(int MaxThreads)
|
boolean |
isNull(int x,
int y,
int z)
|
boolean |
isSafeToAdd()
|
boolean |
IsStairsNode(AStarPathMap.Node node,
AStarPathMap.Node prev,
IsoDirections directions)
|
boolean |
IsZone(java.lang.String name,
int x,
int y)
|
void |
load(java.io.DataInputStream input,
boolean loadPlayer)
|
void |
loadCharacters()
|
boolean |
LoadPlayer()
|
void |
MergeCalculateVertColoursForTile(IsoGridSquare sqThis,
int x,
int y,
int zz)
|
void |
MergeTopsCalculateVertColoursForTile(IsoGridSquare sqThis,
int x,
int y,
int zz)
|
void |
pathFinderVisited(int x,
int y,
int z)
Notification that the path finder visited a given tile. |
void |
PlaceLot(IsoLot lot,
int sx,
int sy,
int sz,
boolean bClearExisting)
|
void |
PlaceLot(IsoLot lot,
int sx,
int sy,
int sz,
IsoChunk ch,
int WX,
int WY,
boolean bForLater)
|
void |
PlaceLot(java.lang.String filename,
int sx,
int sy,
int sz,
boolean bClearExisting)
|
void |
Remove(IsoMovingObject obj)
|
void |
render()
|
void |
RenderFloorShading(int zza)
|
void |
renderListClear()
|
void |
RenderTiles(int MaxHeight)
|
void |
save(java.io.DataOutputStream output,
boolean bDoChars)
|
void |
setAddList(java.util.ArrayList<IsoMovingObject> addList)
|
static void |
setBarricadeDoorFrame(int aBarricadeDoorFrame)
|
void |
setBuildingList(java.util.ArrayList<IsoBuilding> BuildingList)
|
static void |
setBuildings(java.util.Stack<BuildingScore> scores)
|
void |
setBuildingScores(gnu.trove.map.hash.THashMap<java.lang.Integer,BuildingScore> BuildingScores)
|
void |
setCacheGridSquare(int wx,
int wy,
int x,
int y,
int z,
IsoGridSquare square)
|
void |
setCacheGridSquare(int x,
int y,
int z,
IsoGridSquare square)
|
void |
setCacheGridSquareLocal(int x,
int y,
int z,
IsoGridSquare square)
|
void |
setContainers(java.util.Stack<ItemContainer> Containers)
|
void |
setCurrentLightX(int currentLX)
|
void |
setCurrentLightY(int currentLY)
|
void |
setCurrentLightZ(int currentLZ)
|
void |
setDangerUpdate(OnceEvery dangerUpdate)
|
void |
setDrag(se.krka.kahlua.vm.KahluaTable item)
|
void |
setFilename(java.lang.String filename)
|
void |
setGhostList(java.util.ArrayList<IsoZombie> GhostList)
|
void |
setHeight(int height)
|
void |
setLamppostPositions(java.util.Stack<IsoLightSource> LamppostPositions)
|
void |
setLightInfoUpdate(java.lang.Thread LightInfoUpdate)
|
static void |
setMaxHeight(int aMaxHeight)
|
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 |
setObjectList(java.util.ArrayList<IsoMovingObject> ObjectList)
|
void |
setPathMap(AStarPathMap PathMap)
|
void |
setProcessItems(java.util.ArrayList<InventoryItem> ProcessItems)
|
void |
setProcessItemsRemove(java.util.ArrayList<InventoryItem> ProcessItemsRemove)
|
void |
setPushableObjectList(java.util.ArrayList<IsoPushableObject> PushableObjectList)
|
void |
setRemoteSurvivorList(java.util.ArrayList<IsoGameCharacter> RemoteSurvivorList)
|
void |
setRemoveList(java.util.ArrayList<IsoMovingObject> removeList)
|
void |
setRenderJobsArray(java.util.ArrayList<java.util.ArrayList<IsoObject>> RenderJobsArray)
|
void |
setRenderJobsMapArray(gnu.trove.map.hash.THashMap<java.lang.Integer,java.lang.Integer> RenderJobsMapArray)
|
void |
setRoomList(java.util.ArrayList<IsoRoom> RoomList)
|
void |
setSafeToAdd(boolean safeToAdd)
|
static void |
setSheetCurtains(int aSheetCurtains)
|
void |
setStairsNodes(java.util.HashSet<java.lang.Integer> stairsNodes)
|
void |
setStaticUpdaterObjectList(java.util.ArrayList<IsoObject> StaticUpdaterObjectList)
|
void |
setTempZoneStack(java.util.Stack<IsoCell.Zone> tempZoneStack)
|
void |
setWallArray(java.util.ArrayList<java.lang.Integer> wallArray)
|
void |
setWidth(int width)
|
void |
setWoodBarricade(IsoSprite woodBarricade)
|
void |
setWoodCrate(IsoSprite woodCrate)
|
void |
setWoodDoorN(IsoSprite woodDoorN)
|
void |
setWoodDoorW(IsoSprite woodDoorW)
|
void |
setWoodDWallN(IsoSprite woodDWallN)
|
void |
setWoodDWallW(IsoSprite woodDWallW)
|
void |
setWoodFloor(IsoSprite woodFloor)
|
void |
setWoodStairsNB(IsoSprite woodStairsNB)
|
void |
setWoodStairsNM(IsoSprite woodStairsNM)
|
void |
setWoodStairsNT(IsoSprite woodStairsNT)
|
void |
setWoodStairsWB(IsoSprite woodStairsWB)
|
void |
setWoodStairsWM(IsoSprite woodStairsWM)
|
void |
setWoodStairsWT(IsoSprite woodStairsWT)
|
void |
setWoodWallN(IsoSprite woodWallN)
|
void |
setWoodWallW(IsoSprite woodWallW)
|
void |
setWoodWWallN(IsoSprite woodWWallN)
|
void |
setWoodWWallW(IsoSprite woodWWallW)
|
void |
setWorldX(int worldX)
|
void |
setWorldY(int worldY)
|
void |
setZombieList(java.util.ArrayList<IsoZombie> ZombieList)
|
void |
setZoneStack(java.util.ArrayList<IsoCell.Zone> ZoneStack)
|
void |
stopLightingThread()
|
static int |
toIntColor(float r,
float g,
float b,
float a)
|
void |
update()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxHeight
public static int MaxHeight
ChunkMap
public IsoChunkMap[] ChunkMap
BuildingList
public java.util.ArrayList<IsoBuilding> BuildingList
PathMap
public AStarPathMap PathMap
ContainerMap
public java.util.HashMap<java.lang.Integer,ItemContainer> ContainerMap
filename
public java.lang.String filename
DangerScore
public IntGrid DangerScore
roomDefs
public java.util.ArrayList<IsoCell.Zone> roomDefs
recalcFloors
public boolean recalcFloors
bDoLotConnect
public boolean bDoLotConnect
vertLights
public IntHyperCube2 vertLights
staticBlack
public Color staticBlack
bSwappingLightBuffers
public boolean bSwappingLightBuffers
bRendering
public boolean bRendering
IsoCell
public IsoCell(int width,
int height)
IsoCell
public IsoCell(IsoSpriteManager spr,
int width,
int height)
IsoCell
public IsoCell(IsoSpriteManager spr,
int width,
int height,
boolean vvv)
getMaxHeight
public static int getMaxHeight()
- Returns:
- the MaxHeight
setMaxHeight
public static void setMaxHeight(int aMaxHeight)
- Parameters:
aMaxHeight
- the MaxHeight to set
getCurrentLotHeader
public LotHeader getCurrentLotHeader()
getBarricadeDoorFrame
public static int getBarricadeDoorFrame()
- Returns:
- the BarricadeDoorFrame
setBarricadeDoorFrame
public static void setBarricadeDoorFrame(int aBarricadeDoorFrame)
- Parameters:
aBarricadeDoorFrame
- the BarricadeDoorFrame to set
getSheetCurtains
public static int getSheetCurtains()
- Returns:
- the SheetCurtains
setSheetCurtains
public static void setSheetCurtains(int aSheetCurtains)
- Parameters:
aSheetCurtains
- the SheetCurtains to set
getFreeTile
public IsoGridSquare getFreeTile(RoomDef def)
getBuildings
public static java.util.Stack<BuildingScore> getBuildings()
- Returns:
- the getBuildings
setBuildings
public static void setBuildings(java.util.Stack<BuildingScore> scores)
- Parameters:
agetBuildings
- the getBuildings to set
getChunkForGridSquare
public IsoChunk getChunkForGridSquare(int x,
int y,
int z)
CalcLightInfos
public void CalcLightInfos(int MaxHeight)
CalculateVertShading
public void CalculateVertShading(int ma)
CalculateVertColoursForTile
public void CalculateVertColoursForTile(IsoGridSquare sqThis,
int x,
int y,
int zz)
MergeTopsCalculateVertColoursForTile
public void MergeTopsCalculateVertColoursForTile(IsoGridSquare sqThis,
int x,
int y,
int zz)
MergeCalculateVertColoursForTile
public void MergeCalculateVertColoursForTile(IsoGridSquare sqThis,
int x,
int y,
int zz)
ClearVertArrays
public void ClearVertArrays()
DrawStencilMask
public void DrawStencilMask()
RenderTiles
public void RenderTiles(int MaxHeight)
RenderFloorShading
public void RenderFloorShading(int zza)
getClosestBuildingExcept
public IsoBuilding getClosestBuildingExcept(IsoGameCharacter chr,
IsoRoom except)
getDangerScore
public int getDangerScore(int x,
int y)
getNetworkPlayer
public IsoSurvivor getNetworkPlayer(int RemoteID)
IsStairsNode
public boolean IsStairsNode(AStarPathMap.Node node,
AStarPathMap.Node prev,
IsoDirections directions)
- Specified by:
IsStairsNode
in interface TileBasedMap
InitNodeMap
public void InitNodeMap(int MaxThreads)
ConnectNewSquare
public IsoGridSquare ConnectNewSquare(IsoGridSquare newSquare,
boolean bDoSurrounds)
PlaceLot
public void PlaceLot(java.lang.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,
boolean bForLater)
setDrag
public void setDrag(se.krka.kahlua.vm.KahluaTable item)
getDrag
public se.krka.kahlua.vm.KahluaTable getDrag()
DoBuilding
public boolean DoBuilding(boolean bRender)
DistanceFromSupport
public float DistanceFromSupport(int x,
int y,
int z)
getBuildingList
public java.util.ArrayList<IsoBuilding> getBuildingList()
- Returns:
- the BuildingList
setBuildingList
public void setBuildingList(java.util.ArrayList<IsoBuilding> BuildingList)
- Parameters:
BuildingList
- the BuildingList to set
getObjectList
public java.util.ArrayList<IsoMovingObject> getObjectList()
- Returns:
- the ObjectList
setObjectList
public void setObjectList(java.util.ArrayList<IsoMovingObject> ObjectList)
- Parameters:
ObjectList
- the ObjectList to set
getRoom
public IsoRoom getRoom(int ID)
getPushableObjectList
public java.util.ArrayList<IsoPushableObject> getPushableObjectList()
- Returns:
- the PushableObjectList
setPushableObjectList
public void setPushableObjectList(java.util.ArrayList<IsoPushableObject> PushableObjectList)
- Parameters:
PushableObjectList
- the PushableObjectList to set
getBuildingScores
public gnu.trove.map.hash.THashMap<java.lang.Integer,BuildingScore> getBuildingScores()
- Returns:
- the BuildingScores
setBuildingScores
public void setBuildingScores(gnu.trove.map.hash.THashMap<java.lang.Integer,BuildingScore> BuildingScores)
- Parameters:
BuildingScores
- the BuildingScores to set
getPathMap
public AStarPathMap getPathMap()
- Returns:
- the PathMap
setPathMap
public void setPathMap(AStarPathMap PathMap)
- Parameters:
PathMap
- the PathMap to set
getRoomList
public java.util.ArrayList<IsoRoom> getRoomList()
- Returns:
- the RoomList
setRoomList
public void setRoomList(java.util.ArrayList<IsoRoom> RoomList)
- Parameters:
RoomList
- the RoomList to set
getStaticUpdaterObjectList
public java.util.ArrayList<IsoObject> getStaticUpdaterObjectList()
- Returns:
- the StaticUpdaterObjectList
setStaticUpdaterObjectList
public void setStaticUpdaterObjectList(java.util.ArrayList<IsoObject> StaticUpdaterObjectList)
- Parameters:
StaticUpdaterObjectList
- the StaticUpdaterObjectList to set
getWallArray
public java.util.ArrayList<java.lang.Integer> getWallArray()
- Returns:
- the wallArray
setWallArray
public void setWallArray(java.util.ArrayList<java.lang.Integer> wallArray)
- Parameters:
wallArray
- the wallArray to set
getZombieList
public java.util.ArrayList<IsoZombie> getZombieList()
- Returns:
- the ZombieList
setZombieList
public void setZombieList(java.util.ArrayList<IsoZombie> ZombieList)
- Parameters:
ZombieList
- the ZombieList to set
getRemoteSurvivorList
public java.util.ArrayList<IsoGameCharacter> getRemoteSurvivorList()
- Returns:
- the RemoteSurvivorList
setRemoteSurvivorList
public void setRemoteSurvivorList(java.util.ArrayList<IsoGameCharacter> RemoteSurvivorList)
- Parameters:
RemoteSurvivorList
- the RemoteSurvivorList to set
getGhostList
public java.util.ArrayList<IsoZombie> getGhostList()
- Returns:
- the GhostList
setGhostList
public void setGhostList(java.util.ArrayList<IsoZombie> GhostList)
- Parameters:
GhostList
- the GhostList to set
getZoneStack
public java.util.ArrayList<IsoCell.Zone> getZoneStack()
- Returns:
- the ZoneStack
setZoneStack
public void setZoneStack(java.util.ArrayList<IsoCell.Zone> ZoneStack)
- Parameters:
ZoneStack
- the ZoneStack to set
getRemoveList
public java.util.ArrayList<IsoMovingObject> getRemoveList()
- Returns:
- the removeList
setRemoveList
public void setRemoveList(java.util.ArrayList<IsoMovingObject> removeList)
- Parameters:
removeList
- the removeList to set
getAddList
public java.util.ArrayList<IsoMovingObject> getAddList()
- Returns:
- the addList
addMovingObject
public void addMovingObject(IsoMovingObject o)
setAddList
public void setAddList(java.util.ArrayList<IsoMovingObject> addList)
- Parameters:
addList
- the addList to set
getRenderJobsArray
public java.util.ArrayList<java.util.ArrayList<IsoObject>> getRenderJobsArray()
- Returns:
- the RenderJobsArray
setRenderJobsArray
public void setRenderJobsArray(java.util.ArrayList<java.util.ArrayList<IsoObject>> RenderJobsArray)
- Parameters:
RenderJobsArray
- the RenderJobsArray to set
getProcessItems
public java.util.ArrayList<InventoryItem> getProcessItems()
- Returns:
- the ProcessItems
setProcessItems
public void setProcessItems(java.util.ArrayList<InventoryItem> ProcessItems)
- Parameters:
ProcessItems
- the ProcessItems to set
getProcessItemsRemove
public java.util.ArrayList<InventoryItem> getProcessItemsRemove()
- Returns:
- the ProcessItemsRemove
setProcessItemsRemove
public void setProcessItemsRemove(java.util.ArrayList<InventoryItem> ProcessItemsRemove)
- Parameters:
ProcessItemsRemove
- the ProcessItemsRemove to set
getRenderJobsMapArray
public gnu.trove.map.hash.THashMap<java.lang.Integer,java.lang.Integer> getRenderJobsMapArray()
- Returns:
- the RenderJobsMapArray
setRenderJobsMapArray
public void setRenderJobsMapArray(gnu.trove.map.hash.THashMap<java.lang.Integer,java.lang.Integer> RenderJobsMapArray)
- Parameters:
RenderJobsMapArray
- the RenderJobsMapArray to set
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
getContainers
public java.util.Stack<ItemContainer> getContainers()
- Returns:
- the Containers
setContainers
public void setContainers(java.util.Stack<ItemContainer> Containers)
- Parameters:
Containers
- the Containers to set
getFilename
public java.lang.String getFilename()
- Returns:
- the filename
setFilename
public void setFilename(java.lang.String filename)
- Parameters:
filename
- the filename to set
isSafeToAdd
public boolean isSafeToAdd()
- Returns:
- the safeToAdd
setSafeToAdd
public void setSafeToAdd(boolean safeToAdd)
- Parameters:
safeToAdd
- the safeToAdd to set
getLamppostPositions
public java.util.Stack<IsoLightSource> getLamppostPositions()
- Returns:
- the LamppostPositions
setLamppostPositions
public void setLamppostPositions(java.util.Stack<IsoLightSource> LamppostPositions)
- Parameters:
LamppostPositions
- the LamppostPositions to set
getStairsNodes
public java.util.HashSet<java.lang.Integer> getStairsNodes()
- Returns:
- the stairsNodes
setStairsNodes
public void setStairsNodes(java.util.HashSet<java.lang.Integer> stairsNodes)
- Parameters:
stairsNodes
- the stairsNodes to set
getTempZoneStack
public java.util.Stack<IsoCell.Zone> getTempZoneStack()
- Returns:
- the tempZoneStack
setTempZoneStack
public void setTempZoneStack(java.util.Stack<IsoCell.Zone> tempZoneStack)
- Parameters:
tempZoneStack
- the tempZoneStack to set
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
getWoodWallN
public IsoSprite getWoodWallN()
- Returns:
- the woodWallN
setWoodWallN
public void setWoodWallN(IsoSprite woodWallN)
- Parameters:
woodWallN
- the woodWallN to set
getWoodWallW
public IsoSprite getWoodWallW()
- Returns:
- the woodWallW
setWoodWallW
public void setWoodWallW(IsoSprite woodWallW)
- Parameters:
woodWallW
- the woodWallW to set
getWoodDWallN
public IsoSprite getWoodDWallN()
- Returns:
- the woodDWallN
setWoodDWallN
public void setWoodDWallN(IsoSprite woodDWallN)
- Parameters:
woodDWallN
- the woodDWallN to set
getWoodDWallW
public IsoSprite getWoodDWallW()
- Returns:
- the woodDWallW
setWoodDWallW
public void setWoodDWallW(IsoSprite woodDWallW)
- Parameters:
woodDWallW
- the woodDWallW to set
getWoodWWallN
public IsoSprite getWoodWWallN()
- Returns:
- the woodWWallN
setWoodWWallN
public void setWoodWWallN(IsoSprite woodWWallN)
- Parameters:
woodWWallN
- the woodWWallN to set
getWoodWWallW
public IsoSprite getWoodWWallW()
- Returns:
- the woodWWallW
setWoodWWallW
public void setWoodWWallW(IsoSprite woodWWallW)
- Parameters:
woodWWallW
- the woodWWallW to set
getWoodDoorW
public IsoSprite getWoodDoorW()
- Returns:
- the woodDoorW
setWoodDoorW
public void setWoodDoorW(IsoSprite woodDoorW)
- Parameters:
woodDoorW
- the woodDoorW to set
getWoodDoorN
public IsoSprite getWoodDoorN()
- Returns:
- the woodDoorN
setWoodDoorN
public void setWoodDoorN(IsoSprite woodDoorN)
- Parameters:
woodDoorN
- the woodDoorN to set
getWoodFloor
public IsoSprite getWoodFloor()
- Returns:
- the woodFloor
setWoodFloor
public void setWoodFloor(IsoSprite woodFloor)
- Parameters:
woodFloor
- the woodFloor to set
getWoodBarricade
public IsoSprite getWoodBarricade()
- Returns:
- the woodBarricade
setWoodBarricade
public void setWoodBarricade(IsoSprite woodBarricade)
- Parameters:
woodBarricade
- the woodBarricade to set
getWoodCrate
public IsoSprite getWoodCrate()
- Returns:
- the woodCrate
setWoodCrate
public void setWoodCrate(IsoSprite woodCrate)
- Parameters:
woodCrate
- the woodCrate to set
getWoodStairsNB
public IsoSprite getWoodStairsNB()
- Returns:
- the woodStairsNB
setWoodStairsNB
public void setWoodStairsNB(IsoSprite woodStairsNB)
- Parameters:
woodStairsNB
- the woodStairsNB to set
getWoodStairsNM
public IsoSprite getWoodStairsNM()
- Returns:
- the woodStairsNM
setWoodStairsNM
public void setWoodStairsNM(IsoSprite woodStairsNM)
- Parameters:
woodStairsNM
- the woodStairsNM to set
getWoodStairsNT
public IsoSprite getWoodStairsNT()
- Returns:
- the woodStairsNT
setWoodStairsNT
public void setWoodStairsNT(IsoSprite woodStairsNT)
- Parameters:
woodStairsNT
- the woodStairsNT to set
getWoodStairsWB
public IsoSprite getWoodStairsWB()
- Returns:
- the woodStairsWB
setWoodStairsWB
public void setWoodStairsWB(IsoSprite woodStairsWB)
- Parameters:
woodStairsWB
- the woodStairsWB to set
getWoodStairsWM
public IsoSprite getWoodStairsWM()
- Returns:
- the woodStairsWM
setWoodStairsWM
public void setWoodStairsWM(IsoSprite woodStairsWM)
- Parameters:
woodStairsWM
- the woodStairsWM to set
getWoodStairsWT
public IsoSprite getWoodStairsWT()
- Returns:
- the woodStairsWT
setWoodStairsWT
public void setWoodStairsWT(IsoSprite woodStairsWT)
- Parameters:
woodStairsWT
- the woodStairsWT 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 java.lang.Thread getLightInfoUpdate()
- Returns:
- the LightInfoUpdate
setLightInfoUpdate
public void setLightInfoUpdate(java.lang.Thread LightInfoUpdate)
- Parameters:
LightInfoUpdate
- the LightInfoUpdate to set
getSurvivorList
public java.util.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 java.util.Stack<BuildingScore> getBestBuildings(IsoCell.BuildingSearchCriteria criteria,
int count)
AddZone
public void AddZone(java.lang.String name,
int tileX,
int tileY,
int tileW,
int tileH,
int Z)
blocked
public boolean blocked(Mover mover,
int x,
int y,
int z,
int lx,
int ly,
int lz)
- Description copied from interface:
TileBasedMap
- Check if the given location is blocked, i.e. blocks movement of
the supplied mover.
- Specified by:
blocked
in interface TileBasedMap
- Parameters:
mover
- The mover that is potentially moving through the specified
tile.x
- The x coordinate of the tile to checky
- The y coordinate of the tile to check
- Returns:
- True if the location is blocked
Dispose
public void Dispose()
- Overrides:
Dispose
in class Bucket
getCost
public float getCost(Mover mover,
int sx,
int sy,
int sz,
int tx,
int ty,
int tz)
- Description copied from interface:
TileBasedMap
- get the cost of moving through the given tile. This can be used to
make certain areas more desirable. A simple and valid implementation
of this method would be to return 1 in all cases.
- Specified by:
getCost
in interface TileBasedMap
- Parameters:
mover
- The mover that is trying to move across the tilesx
- The x coordinate of the tile we're moving fromsy
- The y coordinate of the tile we're moving fromtx
- The x coordinate of the tile we're moving toty
- The y coordinate of the tile we're moving to
- Returns:
- The relative cost of moving across the given tile
getElevInTiles
public int getElevInTiles()
- Specified by:
getElevInTiles
in interface TileBasedMap
getFreeTile
public IsoGridSquare getFreeTile(java.lang.String zone)
getFreeTile
public IsoGridSquare getFreeTile(IsoCell.Zone zone)
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)
setCacheGridSquare
public void setCacheGridSquare(int wx,
int wy,
int x,
int y,
int z,
IsoGridSquare square)
setCacheGridSquareLocal
public void setCacheGridSquareLocal(int x,
int y,
int z,
IsoGridSquare square)
getGridSquare
public IsoGridSquare getGridSquare(int x,
int y,
int z)
DeleteAllMovingObjects
public void DeleteAllMovingObjects()
getMaxFloors
public int getMaxFloors()
getLuaObjectList
public se.krka.kahlua.vm.KahluaTable getLuaObjectList()
getHeightInTiles
public int getHeightInTiles()
- Description copied from interface:
TileBasedMap
- get the height of the tile map. The slightly odd name is used
to distiguish this method from commonly used names in game maps.
- Specified by:
getHeightInTiles
in interface TileBasedMap
- Returns:
- The number of tiles down the map
getWidthInTiles
public int getWidthInTiles()
- Description copied from interface:
TileBasedMap
- get the width of the tile map. The slightly odd name is used
to distiguish this method from commonly used names in game maps.
- Specified by:
getWidthInTiles
in interface TileBasedMap
- Returns:
- The number of tiles across the map
isNull
public boolean isNull(int x,
int y,
int z)
- Specified by:
isNull
in interface TileBasedMap
IsZone
public boolean IsZone(java.lang.String name,
int x,
int y)
pathFinderVisited
public void pathFinderVisited(int x,
int y,
int z)
- Description copied from interface:
TileBasedMap
- Notification that the path finder visited a given tile. This is
used for debugging new heuristics.
- Specified by:
pathFinderVisited
in interface TileBasedMap
- Parameters:
x
- The x coordinate of the tile that was visitedy
- The y coordinate of the tile that was visited
Remove
public void Remove(IsoMovingObject obj)
stopLightingThread
public void stopLightingThread()
initLightingThread
public void initLightingThread()
render
public void render()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
FromMouseTile
public static IsoDirections FromMouseTile()
renderListClear
public void renderListClear()
update
public void update()
getRandomFreeTileInRoom
public IsoGridSquare getRandomFreeTileInRoom()
save
public void save(java.io.DataOutputStream output,
boolean bDoChars)
throws java.io.IOException
- Throws:
java.io.IOException
LoadPlayer
public boolean LoadPlayer()
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
loadCharacters
public void loadCharacters()
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
load
public void load(java.io.DataInputStream input,
boolean loadPlayer)
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 x,
int y,
int z)
createNewGridSquare
public IsoGridSquare createNewGridSquare(int x,
int y,
int z)