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.ServerCellstatic classServerMap.ZombieIDMap -
Field Summary
Fields Modifier and Type Field Description booleanbQueuedQuitbooleanbQueuedSaveAllbooleanbUpdateLOSThisFrameServerMap.ServerCell[]cellMapstatic intCellSizestatic intChunksPerCellWidthstatic ServerMapinstancelongLastSavedjava.util.ArrayListLoadedCellsstatic OnceEveryLOSTickjava.util.ArrayListReleventNowstatic OnceEveryTimeTickServerMap.ZombieIDMapZombieMap -
Constructor Summary
Constructors Constructor Description ServerMap() -
Method Summary
Modifier and Type Method Description booleanblocked(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)voidcharacterIn(int int1, int int2, int int3)voidcharacterIn(IsoPlayer player)ServerMap.ServerCellgetCell(int int1, int int2)IsoChunkgetChunk(int int1, int int2)floatgetCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)intgetElevInTiles()IsoGridSquaregetGridSquare(int int1, int int2, int int3)intgetHeightInTiles()intgetMaxX()intgetMaxY()intgetMinX()intgetMinY()Vector3getStartLocation(ServerWorldDatabase.LogonResult logonResult)shortgetUniqueZombieId()intgetWidthInTiles()voidinit(IsoMetaGrid metaGrid)booleanisInLoaded(float float1, float float2)booleanisNull(int int1, int int2, int int3)booleanIsStairsNode(IsoGridSquare square, IsoGridSquare square2, IsoDirections directions)booleanisValidCell(int int1, int int2)voidloadMapChunk(int int1, int int2)voidloadOrKeepRelevent(int int1, int int2)voidpathFinderVisited(int int1, int int2, int int3)voidphysicsCheck(int int1, int int2)voidpostupdate()voidpreupdate()voidQueueQuit()voidQueueSaveAll()voidSaveAll()voidsaveZoneInsidePlayerInfluence(int int1)voidsetGridSquare(int int1, int int2, int int3, IsoGridSquare square)inttoServerCellX(int int1)inttoServerCellY(int int1)inttoWorldCellX(int int1)inttoWorldCellY(int int1)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
-
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 int1) -
toServerCellY
public int toServerCellY(int int1) -
toWorldCellX
public int toWorldCellX(int int1) -
toWorldCellY
public int toWorldCellY(int int1) -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY() -
getMinX
public int getMinX() -
getMinY
public int getMinY() -
init
-
getCell
-
isValidCell
public boolean isValidCell(int int1, int int2) -
loadOrKeepRelevent
public void loadOrKeepRelevent(int int1, int int2) -
characterIn
-
characterIn
public void characterIn(int int1, int int2, int int3) -
loadMapChunk
public void loadMapChunk(int int1, int int2) -
preupdate
public void preupdate() -
postupdate
public void postupdate() -
physicsCheck
public void physicsCheck(int int1, int int2) -
saveZoneInsidePlayerInfluence
public void saveZoneInsidePlayerInfluence(int int1) -
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 int1, int int2, int int3)- Specified by:
pathFinderVisitedin interfaceTileBasedMap
-
isNull
public boolean isNull(int int1, int int2, int int3)- Specified by:
isNullin interfaceTileBasedMap
-
IsStairsNode
- Specified by:
IsStairsNodein interfaceTileBasedMap
-
getGridSquare
-
setGridSquare
-
isInLoaded
public boolean isInLoaded(float float1, float float2) -
getChunk
-