Class ServerMap
java.lang.Object
zombie.network.ServerMap
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classfinal class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic ServerMaplongstatic final OnceEverybooleanbooleanstatic final OnceEverybooleanfinal IsoObjectID<IsoZombie> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacterIn(int wx, int wy, int chunkGridWidth) voidvoidclearSoftResetChunk(IsoChunk chunk) getCell(int x, int y) getChunk(int wx, int wy) getGridSquare(int x, int y, int z) static IsoGridSquareintgetMaxX()intgetMaxY()intgetMinX()intgetMinY()shortvoidimportantAreaIn(int sx, int sy) voidinit(IsoMetaGrid metaGrid) booleanisInvalidCell(int x, int y) voidloadOrKeepRelevent(int x, int y) voidphysicsCheck(int x, int y) voidvoidvoidvoidQueuedSaveAll(boolean quit) voidvoidvoidSaveAll()voidsetGridSquare(int x, int y, int z, IsoGridSquare sq) voidsetSoftResetChunk(IsoChunk chunk) inttoServerCellX(int x) inttoServerCellY(int y) inttoWorldCellX(int x) inttoWorldCellY(int y) intworldChunkToServerCellXY(int worldChunkXY) intworldSquareToServerCellXY(int worldSquareXY)
-
Field Details
-
updateLosThisFrame
public boolean updateLosThisFrame -
LOS_TICK
-
TIME_TICK
-
CellSize
public static final int CellSize- See Also:
-
ChunksPerCellWidth
public static final int ChunksPerCellWidth- See Also:
-
lastSaved
public long lastSaved -
zombieMap
-
queuedSaveAll
public boolean queuedSaveAll -
queuedQuit
public boolean queuedQuit -
instance
-
cellMap
-
loadedCells
-
releventNow
-
-
Constructor Details
-
ServerMap
public ServerMap()
-
-
Method Details
-
getUniqueZombieId
public short getUniqueZombieId() -
SaveAll
public void SaveAll() -
QueueSaveAll
public void QueueSaveAll() -
QueueQuit
public void QueueQuit() -
toServerCellX
public int toServerCellX(int x) -
toServerCellY
public int toServerCellY(int y) -
toWorldCellX
public int toWorldCellX(int x) -
toWorldCellY
public int toWorldCellY(int y) -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY() -
getMinX
public int getMinX() -
getMinY
public int getMinY() -
init
-
getCell
-
isInvalidCell
public boolean isInvalidCell(int x, int y) -
loadOrKeepRelevent
public void loadOrKeepRelevent(int x, int y) -
characterIn
-
characterIn
public void characterIn(int wx, int wy, int chunkGridWidth) -
importantAreaIn
public void importantAreaIn(int sx, int sy) -
QueuedQuit
public void QueuedQuit() -
QueuedSaveAll
public void QueuedSaveAll(boolean quit) -
preupdate
public void preupdate() -
postupdate
public void postupdate() -
physicsCheck
public void physicsCheck(int x, int y) -
worldSquareToServerCellXY
public int worldSquareToServerCellXY(int worldSquareXY) -
worldChunkToServerCellXY
public int worldChunkToServerCellXY(int worldChunkXY) -
getGridSquare
-
getGridSquare
-
setGridSquare
-
getChunk
-
setSoftResetChunk
-
clearSoftResetChunk
-