Package zombie
Class ZombiePopulationManager
java.lang.Object
zombie.ZombiePopulationManager
public class ZombiePopulationManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ZombiePopulationManager.ZombiePopulationRenderer
-
Field Summary
Fields Modifier and Type Field Description static ZombiePopulationManager
instance
float[]
radarHack
boolean
radarHackFlag
int
radarHackSize
-
Constructor Summary
Constructors Constructor Description ZombiePopulationManager()
-
Method Summary
Modifier and Type Method Description void
addChunkToWorld(IsoChunk chunk)
void
addVirtualZombie(int x, int y)
void
addVirtualZombie(int x, int y, int pathTargetX, int pathTargetY)
void
addWorldSound(int x, int y, int radius, int volume)
void
addWorldSound(WorldSoundManager.WorldSound sound)
void
beginSaveRealZombies()
void
click(int x, int y)
void
clientPacket(java.nio.ByteBuffer bb)
void
convertOldFiles()
void
createHordeFromTo(int spawnX, int spawnY, int targetX, int targetY, int count)
void
createHordeInAreaTo(int spawnX, int spawnY, int spawnW, int spawnH, int targetX, int targetY, int count)
void
dbgClearZombies(int cellX, int cellY)
void
dbgSpawnNow(int cellX, int cellY)
void
dbgSpawnTimeToZero(int cellX, int cellY)
void
endSaveRealZombies()
zombie.ZombiePopulationManager.Cell
getCellFromCellPos(int x, int y)
zombie.ZombiePopulationManager.Cell
getCellFromChunkPos(int wx, int wy)
zombie.ZombiePopulationManager.Cell
getCellFromWorldPos(int x, int y)
void
init(IsoMetaGrid metaGrid)
boolean
isRespawnEnabled()
void
onConfigReloaded()
void
playerSpawnedAt(int x, int y, int z)
void
removeChunkFromWorld(IsoChunk chunk)
void
save()
void
serverPacket(java.nio.ByteBuffer bb, UdpConnection connection)
void
setAggroTarget(int id, int x, int y)
boolean
shouldWait()
void
stop()
void
updateLoadedAreas()
void
updateMain()
void
virtualizeZombie(IsoZombie realZombie)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
radarHack
public float[] radarHack -
radarHackSize
public int radarHackSize -
radarHackFlag
public boolean radarHackFlag
-
-
Constructor Details
-
ZombiePopulationManager
public ZombiePopulationManager()
-
-
Method Details
-
init
-
onConfigReloaded
public void onConfigReloaded() -
convertOldFiles
public void convertOldFiles() -
beginSaveRealZombies
public void beginSaveRealZombies() -
endSaveRealZombies
public void endSaveRealZombies() -
save
public void save() -
stop
public void stop() -
getCellFromCellPos
public zombie.ZombiePopulationManager.Cell getCellFromCellPos(int x, int y) -
getCellFromWorldPos
public zombie.ZombiePopulationManager.Cell getCellFromWorldPos(int x, int y) -
getCellFromChunkPos
public zombie.ZombiePopulationManager.Cell getCellFromChunkPos(int wx, int wy) -
isRespawnEnabled
public boolean isRespawnEnabled() -
setAggroTarget
public void setAggroTarget(int id, int x, int y) -
click
public void click(int x, int y) -
shouldWait
public boolean shouldWait() -
addChunkToWorld
-
removeChunkFromWorld
-
virtualizeZombie
-
updateMain
public void updateMain() -
updateLoadedAreas
public void updateLoadedAreas() -
addVirtualZombie
public void addVirtualZombie(int x, int y) -
addVirtualZombie
public void addVirtualZombie(int x, int y, int pathTargetX, int pathTargetY) -
createHordeFromTo
public void createHordeFromTo(int spawnX, int spawnY, int targetX, int targetY, int count) -
createHordeInAreaTo
public void createHordeInAreaTo(int spawnX, int spawnY, int spawnW, int spawnH, int targetX, int targetY, int count) -
playerSpawnedAt
public void playerSpawnedAt(int x, int y, int z) -
dbgSpawnTimeToZero
public void dbgSpawnTimeToZero(int cellX, int cellY) -
dbgClearZombies
public void dbgClearZombies(int cellX, int cellY) -
dbgSpawnNow
public void dbgSpawnNow(int cellX, int cellY) -
addWorldSound
public void addWorldSound(int x, int y, int radius, int volume) -
addWorldSound
-
clientPacket
public void clientPacket(java.nio.ByteBuffer bb) -
serverPacket
-