Package zombie.iso
Class IsoWorld
java.lang.Object
zombie.iso.IsoWorld
public class IsoWorld
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
IsoWorld.Frame
static class
IsoWorld.MetaCell
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList
AddCoopPlayers
boolean
bDoChunkMapUpdate
boolean
bDrawWorld
java.lang.String[][]
cellMap
IsoCell
CurrentCell
java.util.ArrayList
currentClassicEmitters
java.util.ArrayList
currentEmitters
java.util.ArrayDeque
freeClassicEmitters
java.util.ArrayDeque
freeEmitters
java.util.Stack
Groups
Helicopter
helicopter
static IsoWorld
instance
static java.lang.String
mapPath
static boolean
mapUseJar
IsoMetaGrid
MetaGrid
static boolean
NoZombies
java.lang.String
playerCell
static int
SavedWorldVersion
static int
saveoffsetx
static int
saveoffsety
IsoSpriteManager
spriteManager
java.util.HashMap
SurvivorDescriptors
int
SurvivorSurvivalRecord
int
TotalSurvivorNights
int
TotalSurvivorsDead
static int
TotalWorldVersion
static int
WorldVersion
static int
WorldVersion_Barricade
static int
WorldVersion_FliesSound
static int
WorldVersion_SandboxOptions
int
x
int
y
-
Constructor Summary
Constructors Constructor Description IsoWorld()
-
Method Summary
Modifier and Type Method Description void
addLuaTrait(java.lang.String trait)
static byte[]
createChecksum(java.lang.String filename)
IsoSurvivor
CreateRandomSurvivor(SurvivorDesc desc, IsoGridSquare sq, IsoPlayer player)
void
CreateSurvivorGroup(IsoGridSquare sq, IsoPlayer player)
void
CreateSwarm(int num, int x1, int y1, int x2, int y2)
static boolean
DoChecksumCheck()
static boolean
DoChecksumCheck(java.lang.String str, java.lang.String expected)
void
ForceKillAllZombies()
IsoCell
getCell()
java.lang.String
getDifficulty()
BaseSoundEmitter
getFreeClassicEmitter()
BaseSoundEmitter
getFreeEmitter()
BaseSoundEmitter
getFreeEmitter(float x, float y, float z)
java.lang.String
getGameMode()
float
getGlobalTemperature()
IsoObject
getItemFromXYZIndexBuffer(java.nio.ByteBuffer bb)
SurvivorDesc
getLuaPlayerDesc()
int
getLuaPosX()
int
getLuaPosY()
int
getLuaPosZ()
int
getLuaSpawnCellX()
int
getLuaSpawnCellY()
java.util.ArrayList
getLuaTraits()
java.lang.String
getMap()
static java.lang.String
getMD5Checksum(java.lang.String filename)
IsoMetaChunk
getMetaChunk(int wx, int wy)
IsoMetaChunk
getMetaChunkFromTile(int wx, int wy)
IsoMetaGrid
getMetaGrid()
java.util.ArrayList
getRandomizedBuildingList()
RandomizedBuildingBase
getRBBasic()
java.lang.String
getWeather()
java.lang.String
getWorld()
int
getWorldSquareX()
int
getWorldSquareY()
static boolean
getZombiesDisabled()
static boolean
getZombiesEnabled()
void
init()
boolean
isValidSquare(int x, int y, int z)
void
KillCell()
boolean
LoadPlayerForInfo()
void
LoadTileDefinitions(IsoSpriteManager sprMan, java.lang.String filename, int fileNumber)
void
primUpdate()
static int
readInt(java.io.RandomAccessFile in)
static java.lang.String
readString(java.io.RandomAccessFile in)
IsoMetaGrid.Zone
registerZone(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height)
IsoMetaGrid.Zone
registerZoneNoOverlap(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height)
void
removeZone(IsoMetaGrid.Zone zone)
void
render()
void
setDifficulty(java.lang.String difficulty)
void
setDrawWorld(boolean b)
void
setGameMode(java.lang.String mode)
void
setGlobalTemperature(float globalTemperature)
void
setLuaPlayerDesc(SurvivorDesc desc)
void
setLuaPosX(int luaPosX)
void
setLuaPosY(int luaPosY)
void
setLuaPosZ(int luaPosZ)
void
setLuaSpawnCellX(int luaSpawnCellX)
void
setLuaSpawnCellY(int luaSpawnCellY)
void
setMap(java.lang.String world)
void
setRandomizedBuildingList(java.util.ArrayList randomizedBuildingList)
void
setRBBasic(RandomizedBuildingBase rBBasic)
void
setWeather(java.lang.String weather)
void
setWorld(java.lang.String world)
void
transmitWeather()
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MetaGrid
-
helicopter
-
freeEmitters
public java.util.ArrayDeque freeEmitters -
currentEmitters
public java.util.ArrayList currentEmitters -
freeClassicEmitters
public java.util.ArrayDeque freeClassicEmitters -
currentClassicEmitters
public java.util.ArrayList currentClassicEmitters -
x
public int x -
y
public int y -
playerCell
public java.lang.String playerCell -
CurrentCell
-
instance
-
Groups
public java.util.Stack Groups -
TotalSurvivorsDead
public int TotalSurvivorsDead -
TotalSurvivorNights
public int TotalSurvivorNights -
SurvivorSurvivalRecord
public int SurvivorSurvivalRecord -
SurvivorDescriptors
public java.util.HashMap SurvivorDescriptors -
AddCoopPlayers
public java.util.ArrayList AddCoopPlayers -
mapPath
public static java.lang.String mapPath -
mapUseJar
public static boolean mapUseJar -
spriteManager
-
WorldVersion
public static final int WorldVersion- See Also:
- Constant Field Values
-
WorldVersion_Barricade
public static final int WorldVersion_Barricade- See Also:
- Constant Field Values
-
WorldVersion_SandboxOptions
public static final int WorldVersion_SandboxOptions- See Also:
- Constant Field Values
-
WorldVersion_FliesSound
public static final int WorldVersion_FliesSound- See Also:
- Constant Field Values
-
SavedWorldVersion
public static int SavedWorldVersion -
cellMap
public java.lang.String[][] cellMap -
bDrawWorld
public boolean bDrawWorld -
NoZombies
public static boolean NoZombies -
TotalWorldVersion
public static int TotalWorldVersion -
saveoffsetx
public static int saveoffsetx -
saveoffsety
public static int saveoffsety -
bDoChunkMapUpdate
public boolean bDoChunkMapUpdate
-
-
Constructor Details
-
IsoWorld
public IsoWorld()
-
-
Method Details
-
getMetaGrid
-
registerZone
public IsoMetaGrid.Zone registerZone(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height) -
removeZone
-
registerZoneNoOverlap
public IsoMetaGrid.Zone registerZoneNoOverlap(java.lang.String name, java.lang.String type, int x, int y, int z, int width, int height) -
getFreeEmitter
-
getFreeClassicEmitter
-
getFreeEmitter
-
createChecksum
public static byte[] createChecksum(java.lang.String filename) throws java.lang.Exception- Throws:
java.lang.Exception
-
setGameMode
public void setGameMode(java.lang.String mode) -
getGameMode
public java.lang.String getGameMode() -
setWorld
public void setWorld(java.lang.String world) -
setMap
public void setMap(java.lang.String world) -
getMap
public java.lang.String getMap() -
getMD5Checksum
public static java.lang.String getMD5Checksum(java.lang.String filename) throws java.lang.Exception- Throws:
java.lang.Exception
-
DoChecksumCheck
public static boolean DoChecksumCheck(java.lang.String str, java.lang.String expected) -
DoChecksumCheck
public static boolean DoChecksumCheck() -
getItemFromXYZIndexBuffer
-
CreateSurvivorGroup
-
CreateRandomSurvivor
-
CreateSwarm
public void CreateSwarm(int num, int x1, int y1, int x2, int y2) -
ForceKillAllZombies
public void ForceKillAllZombies() -
readInt
public static int readInt(java.io.RandomAccessFile in) throws java.io.EOFException, java.io.IOException- Throws:
java.io.EOFException
java.io.IOException
-
readString
public static java.lang.String readString(java.io.RandomAccessFile in) throws java.io.EOFException, java.io.IOException- Throws:
java.io.EOFException
java.io.IOException
-
LoadTileDefinitions
public void LoadTileDefinitions(IsoSpriteManager sprMan, java.lang.String filename, int fileNumber) -
LoadPlayerForInfo
public boolean LoadPlayerForInfo() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundException
java.io.IOException
-
init
public void init() throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundException
java.io.IOException
-
getLuaTraits
public java.util.ArrayList getLuaTraits() -
addLuaTrait
public void addLuaTrait(java.lang.String trait) -
getLuaPlayerDesc
-
setLuaPlayerDesc
-
KillCell
public void KillCell() -
setDrawWorld
public void setDrawWorld(boolean b) -
render
public void render() -
primUpdate
public void primUpdate() -
update
public void update() -
getCell
-
getWorldSquareY
public int getWorldSquareY() -
getWorldSquareX
public int getWorldSquareX() -
getMetaChunk
-
getMetaChunkFromTile
-
getGlobalTemperature
public float getGlobalTemperature() -
setGlobalTemperature
public void setGlobalTemperature(float globalTemperature) -
getWeather
public java.lang.String getWeather() -
setWeather
public void setWeather(java.lang.String weather) -
getLuaSpawnCellX
public int getLuaSpawnCellX() -
setLuaSpawnCellX
public void setLuaSpawnCellX(int luaSpawnCellX) -
getLuaSpawnCellY
public int getLuaSpawnCellY() -
setLuaSpawnCellY
public void setLuaSpawnCellY(int luaSpawnCellY) -
getLuaPosX
public int getLuaPosX() -
setLuaPosX
public void setLuaPosX(int luaPosX) -
getLuaPosY
public int getLuaPosY() -
setLuaPosY
public void setLuaPosY(int luaPosY) -
getLuaPosZ
public int getLuaPosZ() -
setLuaPosZ
public void setLuaPosZ(int luaPosZ) -
getWorld
public java.lang.String getWorld() -
transmitWeather
public void transmitWeather() -
isValidSquare
public boolean isValidSquare(int x, int y, int z) -
getRandomizedBuildingList
public java.util.ArrayList getRandomizedBuildingList() -
setRandomizedBuildingList
public void setRandomizedBuildingList(java.util.ArrayList randomizedBuildingList) -
getRBBasic
-
setRBBasic
-
getDifficulty
public java.lang.String getDifficulty() -
setDifficulty
public void setDifficulty(java.lang.String difficulty) -
getZombiesDisabled
public static boolean getZombiesDisabled() -
getZombiesEnabled
public static boolean getZombiesEnabled()
-