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 class
ServerMap.ServerCell
-
Field Summary
Fields Modifier and Type Field Description boolean
bQueuedQuit
boolean
bQueuedSaveAll
boolean
bUpdateLOSThisFrame
ServerMap.ServerCell[]
cellMap
static int
CellSize
static int
ChunksPerCellWidth
static ServerMap
instance
long
LastSaved
java.util.ArrayList
LoadedCells
static OnceEvery
LOSTick
java.util.ArrayList
ReleventNow
static OnceEvery
TimeTick
java.util.HashMap
ZombieMap
-
Constructor Summary
Constructors Constructor Description ServerMap()
-
Method Summary
Modifier and Type Method Description boolean
blocked(Mover mover, int x, int y, int z, int lx, int ly, int lz)
void
characterIn(int wx, int wy, int chunkGridWidth)
void
characterIn(IsoPlayer p)
ServerMap.ServerCell
getCell(int x, int y)
IsoChunk
getChunk(int wx, int wy)
float
getCost(Mover mover, int sx, int sy, int sz, int tx, int ty, int tz)
int
getElevInTiles()
IsoGridSquare
getGridSquare(int x, int y, int z)
int
getHeightInTiles()
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
Vector3
getStartLocation(ServerWorldDatabase.LogonResult r)
short
getUniqueZombieId()
int
getWidthInTiles()
void
init(IsoMetaGrid metaGrid)
boolean
isInLoaded(float x, float y)
boolean
isNull(int x, int y, int z)
boolean
IsStairsNode(IsoGridSquare node, IsoGridSquare prev, IsoDirections directions)
boolean
isValidCell(int x, int y)
void
loadMapChunk(int ix, int iy)
void
loadOrKeepRelevent(int x, int y)
void
pathFinderVisited(int x, int y, int z)
void
postupdate()
void
preupdate()
void
QueueQuit()
void
QueueSaveAll()
void
SaveAll()
void
setGridSquare(int x, int y, int z, IsoGridSquare sq)
int
toServerCellX(int x)
int
toServerCellY(int y)
int
toWorldCellX(int x)
int
toWorldCellY(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:
blocked
in interfaceTileBasedMap
-
getCost
- Specified by:
getCost
in interfaceTileBasedMap
-
getElevInTiles
public int getElevInTiles()- Specified by:
getElevInTiles
in interfaceTileBasedMap
-
getHeightInTiles
public int getHeightInTiles()- Specified by:
getHeightInTiles
in interfaceTileBasedMap
-
getWidthInTiles
public int getWidthInTiles()- Specified by:
getWidthInTiles
in interfaceTileBasedMap
-
pathFinderVisited
public void pathFinderVisited(int x, int y, int z)- Specified by:
pathFinderVisited
in interfaceTileBasedMap
-
isNull
public boolean isNull(int x, int y, int z)- Specified by:
isNull
in interfaceTileBasedMap
-
IsStairsNode
- Specified by:
IsStairsNode
in interfaceTileBasedMap
-
getGridSquare
-
setGridSquare
-
isInLoaded
public boolean isInLoaded(float x, float y) -
getChunk
-