Package zombie.network
Class ServerMap
java.lang.Object
zombie.network.ServerMap
- All Implemented Interfaces:
TileBasedMap
public class ServerMap extends java.lang.Object implements TileBasedMap
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServerMap.ServerCell -
Field Summary
Fields Modifier and Type Field Description booleanbQueuedQuitbooleanbQueuedSaveAllbooleanbUpdateLOSThisFrameServerMap.ServerCell[]cellMapstatic intCellSizestatic intChunksPerCellWidthstatic ServerMapinstancelongLastSavedjava.util.ArrayListLoadedCellsstatic OnceEveryLOSTickjava.util.ArrayListReleventNowstatic OnceEveryTimeTickjava.util.HashMapZombieMap -
Constructor Summary
Constructors Constructor Description ServerMap() -
Method Summary
Modifier and Type Method Description booleanblocked(Mover mover, int x, int y, int z, int lx, int ly, int lz)voidcharacterIn(int wx, int wy, int chunkGridWidth)voidcharacterIn(IsoPlayer p)ServerMap.ServerCellgetCell(int x, int y)IsoChunkgetChunk(int wx, int wy)floatgetCost(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)intgetElevInTiles()IsoGridSquaregetGridSquare(int x, int y, int z)intgetHeightInTiles()intgetMaxX()intgetMaxY()intgetMinX()intgetMinY()Vector3getStartLocation(ServerWorldDatabase.LogonResult r)shortgetUniqueZombieId()intgetWidthInTiles()voidinit(IsoMetaGrid metaGrid)booleanisInLoaded(float x, float y)booleanisNull(int x, int y, int z)booleanIsStairsNode(IsoGridSquare node, IsoGridSquare prev, IsoDirections directions)booleanisValidCell(int x, int y)voidloadMapChunk(int ix, int iy)voidloadOrKeepRelevent(int x, int y)voidpathFinderVisited(int x, int y, int z)voidpostupdate()voidpreupdate()voidQueueQuit()voidQueueSaveAll()voidSaveAll()voidsetGridSquare(int x, int y, int z, IsoGridSquare sq)inttoServerCellX(int x)inttoServerCellY(int y)inttoWorldCellX(int x)inttoWorldCellY(int y)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bUpdateLOSThisFrame
public boolean bUpdateLOSThisFrame -
LOSTick
-
TimeTick
-
CellSize
public static final int CellSize- See Also:
- Constant Field Values
-
ChunksPerCellWidth
public static final int ChunksPerCellWidth- See Also:
- Constant Field Values
-
LastSaved
public long LastSaved -
ZombieMap
public java.util.HashMap ZombieMap -
bQueuedSaveAll
public boolean bQueuedSaveAll -
bQueuedQuit
public boolean bQueuedQuit -
instance
-
cellMap
-
LoadedCells
public java.util.ArrayList LoadedCells -
ReleventNow
public java.util.ArrayList ReleventNow
-
-
Constructor Details
-
ServerMap
public ServerMap()
-
-
Method Details
-
getUniqueZombieId
public short getUniqueZombieId() -
getStartLocation
-
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
-
isValidCell
public boolean isValidCell(int x, int y) -
loadOrKeepRelevent
public void loadOrKeepRelevent(int x, int y) -
characterIn
-
characterIn
public void characterIn(int wx, int wy, int chunkGridWidth) -
loadMapChunk
public void loadMapChunk(int ix, int iy) -
preupdate
public void preupdate() -
postupdate
public void postupdate() -
blocked
- Specified by:
blockedin interfaceTileBasedMap
-
getCost
- Specified by:
getCostin interfaceTileBasedMap
-
getElevInTiles
public int getElevInTiles()- Specified by:
getElevInTilesin interfaceTileBasedMap
-
getHeightInTiles
public int getHeightInTiles()- Specified by:
getHeightInTilesin interfaceTileBasedMap
-
getWidthInTiles
public int getWidthInTiles()- Specified by:
getWidthInTilesin interfaceTileBasedMap
-
pathFinderVisited
public void pathFinderVisited(int x, int y, int z)- Specified by:
pathFinderVisitedin interfaceTileBasedMap
-
isNull
public boolean isNull(int x, int y, int z)- Specified by:
isNullin interfaceTileBasedMap
-
IsStairsNode
- Specified by:
IsStairsNodein interfaceTileBasedMap
-
getGridSquare
-
setGridSquare
-
isInLoaded
public boolean isInLoaded(float x, float y) -
getChunk
-