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
static class
ServerMap.ZombieIDMap
-
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
ServerMap.ZombieIDMap
ZombieMap
-
Constructor Summary
Constructors Constructor Description ServerMap()
-
Method Summary
Modifier and Type Method Description boolean
blocked(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
void
characterIn(int int1, int int2, int int3)
void
characterIn(IsoPlayer player)
ServerMap.ServerCell
getCell(int int1, int int2)
IsoChunk
getChunk(int int1, int int2)
float
getCost(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
int
getElevInTiles()
IsoGridSquare
getGridSquare(int int1, int int2, int int3)
int
getHeightInTiles()
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
Vector3
getStartLocation(ServerWorldDatabase.LogonResult logonResult)
short
getUniqueZombieId()
int
getWidthInTiles()
void
init(IsoMetaGrid metaGrid)
boolean
isInLoaded(float float1, float float2)
boolean
isNull(int int1, int int2, int int3)
boolean
IsStairsNode(IsoGridSquare square, IsoGridSquare square2, IsoDirections directions)
boolean
isValidCell(int int1, int int2)
void
loadMapChunk(int int1, int int2)
void
loadOrKeepRelevent(int int1, int int2)
void
pathFinderVisited(int int1, int int2, int int3)
void
physicsCheck(int int1, int int2)
void
postupdate()
void
preupdate()
void
QueueQuit()
void
QueueSaveAll()
void
SaveAll()
void
saveZoneInsidePlayerInfluence(int int1)
void
setGridSquare(int int1, int int2, int int3, IsoGridSquare square)
int
toServerCellX(int int1)
int
toServerCellY(int int1)
int
toWorldCellX(int int1)
int
toWorldCellY(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:
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 int1, int int2, int int3)- Specified by:
pathFinderVisited
in interfaceTileBasedMap
-
isNull
public boolean isNull(int int1, int int2, int int3)- Specified by:
isNull
in interfaceTileBasedMap
-
IsStairsNode
- Specified by:
IsStairsNode
in interfaceTileBasedMap
-
getGridSquare
-
setGridSquare
-
isInLoaded
public boolean isInLoaded(float float1, float float2) -
getChunk
-