Package zombie.popman
Class ZombiePopulationManager
java.lang.Object
zombie.popman.ZombiePopulationManager
public final class ZombiePopulationManager
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanbClientstatic booleanbDebugLoggingEnabledprotected booleanbStoppedprotected static intCHUNKS_PER_CELLprotected intheightstatic ZombiePopulationManagerinstanceprotected intminXprotected intminYprotected static byteOLD_ZOMBIE_CRAWLERprotected static byteOLD_ZOMBIE_CRAWLER_CAN_WALKprotected static byteOLD_ZOMBIE_FAKE_DEADprotected static byteOLD_ZOMBIE_WALKERintradarCountbooleanradarRenderFlagbooleanradarRequestFlagfloat[]radarXYprotected static intSQUARES_PER_CELLprotected static intSQUARES_PER_CHUNKprotected intwidthprotected static intZOMBIE_STATE_CAN_WALKprotected static intZOMBIE_STATE_CRAWL_UNDER_VEHICLEprotected static intZOMBIE_STATE_CRAWLINGprotected static intZOMBIE_STATE_FAKE_DEADprotected static intZOMBIE_STATE_INITIALIZED -
Method Summary
Modifier and Type Method Description voidaddChunkToWorld(IsoChunk chunk)voidaddWorldSound(WorldSoundManager.WorldSound worldSound, boolean boolean1)voidbeginSaveRealZombies()voidcreateHordeFromTo(int int1, int int2, int int3, int int4, int int5)voidcreateHordeInAreaTo(int int1, int int2, int int3, int int4, int int5, int int6, int int7)voiddbgClearZombies(int int1, int int2)voiddbgSpawnNow(int int1, int int2)voiddbgSpawnTimeToZero(int int1, int int2)voidendSaveRealZombies()static voidinit()voidinit(IsoMetaGrid metaGrid)protected static voidn_realZombieCount(short short1, short[] shortArray)protected static voidn_spawnHorde(int int1, int int2, int int3, int int4, float float1, float float2, int int5)voidonConfigReloaded()voidplayerSpawnedAt(int int1, int int2, int int3)voidregisterSpawnOrigin(int int1, int int2, int int3, int int4, KahluaTable kahluaTable)voidremoveChunkFromWorld(IsoChunk chunk)voidsave()voidsetAggroTarget(int int1, int int2, int int3)booleanshouldWait()voidsitAgainstWall(IsoZombie zombie, IsoGridSquare square)voidstop()voidupdateLoadedAreas()voidupdateMain()voidupdateThread()voidvirtualizeZombie(IsoZombie zombie)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
SQUARES_PER_CHUNK
protected static final int SQUARES_PER_CHUNK- See Also:
- Constant Field Values
-
CHUNKS_PER_CELL
protected static final int CHUNKS_PER_CELL- See Also:
- Constant Field Values
-
SQUARES_PER_CELL
protected static final int SQUARES_PER_CELL- See Also:
- Constant Field Values
-
OLD_ZOMBIE_CRAWLER_CAN_WALK
protected static final byte OLD_ZOMBIE_CRAWLER_CAN_WALK- See Also:
- Constant Field Values
-
OLD_ZOMBIE_FAKE_DEAD
protected static final byte OLD_ZOMBIE_FAKE_DEAD- See Also:
- Constant Field Values
-
OLD_ZOMBIE_CRAWLER
protected static final byte OLD_ZOMBIE_CRAWLER- See Also:
- Constant Field Values
-
OLD_ZOMBIE_WALKER
protected static final byte OLD_ZOMBIE_WALKER- See Also:
- Constant Field Values
-
ZOMBIE_STATE_INITIALIZED
protected static final int ZOMBIE_STATE_INITIALIZED- See Also:
- Constant Field Values
-
ZOMBIE_STATE_CRAWLING
protected static final int ZOMBIE_STATE_CRAWLING- See Also:
- Constant Field Values
-
ZOMBIE_STATE_CAN_WALK
protected static final int ZOMBIE_STATE_CAN_WALK- See Also:
- Constant Field Values
-
ZOMBIE_STATE_FAKE_DEAD
protected static final int ZOMBIE_STATE_FAKE_DEAD- See Also:
- Constant Field Values
-
ZOMBIE_STATE_CRAWL_UNDER_VEHICLE
protected static final int ZOMBIE_STATE_CRAWL_UNDER_VEHICLE- See Also:
- Constant Field Values
-
minX
protected int minX -
minY
protected int minY -
width
protected int width -
height
protected int height -
bStopped
protected boolean bStopped -
bClient
protected boolean bClient -
bDebugLoggingEnabled
public static boolean bDebugLoggingEnabled -
radarXY
public float[] radarXY -
radarCount
public int radarCount -
radarRenderFlag
public boolean radarRenderFlag -
radarRequestFlag
public boolean radarRequestFlag
-
-
Method Details
-
n_realZombieCount
protected static void n_realZombieCount(short short1, short[] shortArray) -
n_spawnHorde
protected static void n_spawnHorde(int int1, int int2, int int3, int int4, float float1, float float2, int int5) -
init
public static void init() -
init
-
onConfigReloaded
public void onConfigReloaded() -
registerSpawnOrigin
-
playerSpawnedAt
public void playerSpawnedAt(int int1, int int2, int int3) -
addChunkToWorld
-
removeChunkFromWorld
-
virtualizeZombie
-
setAggroTarget
public void setAggroTarget(int int1, int int2, int int3) -
createHordeFromTo
public void createHordeFromTo(int int1, int int2, int int3, int int4, int int5) -
createHordeInAreaTo
public void createHordeInAreaTo(int int1, int int2, int int3, int int4, int int5, int int6, int int7) -
addWorldSound
-
updateMain
public void updateMain() -
sitAgainstWall
-
updateThread
public void updateThread() -
shouldWait
public boolean shouldWait() -
updateLoadedAreas
public void updateLoadedAreas() -
dbgSpawnTimeToZero
public void dbgSpawnTimeToZero(int int1, int int2) -
dbgClearZombies
public void dbgClearZombies(int int1, int int2) -
dbgSpawnNow
public void dbgSpawnNow(int int1, int int2) -
beginSaveRealZombies
public void beginSaveRealZombies() -
endSaveRealZombies
public void endSaveRealZombies() -
save
public void save() -
stop
public void stop()
-