Class ServerMap

java.lang.Object
zombie.network.ServerMap
All Implemented Interfaces:
TileBasedMap

public class ServerMap
extends java.lang.Object
implements TileBasedMap
  • Field Details

    • bUpdateLOSThisFrame

      public boolean bUpdateLOSThisFrame
    • LOSTick

      public static OnceEvery LOSTick
    • TimeTick

      public static OnceEvery 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 final ServerMap.ZombieIDMap ZombieMap
    • bQueuedSaveAll

      public boolean bQueuedSaveAll
    • bQueuedQuit

      public boolean bQueuedQuit
    • instance

      public static ServerMap instance
    • cellMap

      public ServerMap.ServerCell[] 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

      public Vector3 getStartLocation​(ServerWorldDatabase.LogonResult r)
    • 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

      public void init​(IsoMetaGrid metaGrid)
    • getCell

      public ServerMap.ServerCell getCell​(int x, int y)
    • isValidCell

      public boolean isValidCell​(int x, int y)
    • loadOrKeepRelevent

      public void loadOrKeepRelevent​(int x, int y)
    • characterIn

      public void characterIn​(IsoPlayer p)
    • 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()
    • physicsCheck

      public void physicsCheck​(int x, int y)
    • saveZoneInsidePlayerInfluence

      public void saveZoneInsidePlayerInfluence​(int playerOID)
    • blocked

      public boolean blocked​(Mover mover, int x, int y, int z, int lx, int ly, int lz)
      Specified by:
      blocked in interface TileBasedMap
    • getCost

      public float getCost​(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)
      Specified by:
      getCost in interface TileBasedMap
    • getElevInTiles

      public int getElevInTiles()
      Specified by:
      getElevInTiles in interface TileBasedMap
    • getHeightInTiles

      public int getHeightInTiles()
      Specified by:
      getHeightInTiles in interface TileBasedMap
    • getWidthInTiles

      public int getWidthInTiles()
      Specified by:
      getWidthInTiles in interface TileBasedMap
    • pathFinderVisited

      public void pathFinderVisited​(int x, int y, int z)
      Specified by:
      pathFinderVisited in interface TileBasedMap
    • isNull

      public boolean isNull​(int x, int y, int z)
      Specified by:
      isNull in interface TileBasedMap
    • IsStairsNode

      public boolean IsStairsNode​(IsoGridSquare node, IsoGridSquare prev, IsoDirections directions)
      Specified by:
      IsStairsNode in interface TileBasedMap
    • getGridSquare

      public IsoGridSquare getGridSquare​(int x, int y, int z)
    • setGridSquare

      public void setGridSquare​(int x, int y, int z, IsoGridSquare sq)
    • isInLoaded

      public boolean isInLoaded​(float x, float y)
    • getChunk

      public IsoChunk getChunk​(int wx, int wy)