Package zombie.network
Class ServerMap
java.lang.Object
zombie.network.ServerMap
public class ServerMap
extends java.lang.Object
-
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 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)
IsoGridSquare
getGridSquare(int int1, int int2, int int3)
int
getMaxX()
int
getMaxY()
int
getMinX()
int
getMinY()
Vector3
getStartLocation(ServerWorldDatabase.LogonResult logonResult)
short
getUniqueZombieId()
void
init(IsoMetaGrid metaGrid)
boolean
isInLoaded(float float1, float float2)
boolean
isValidCell(int int1, int int2)
void
loadMapChunk(int int1, int int2)
void
loadOrKeepRelevent(int int1, int int2)
void
physicsCheck(int int1, int int2)
void
postupdate()
void
preupdate()
void
QueueQuit()
void
QueueSaveAll()
void
SaveAll()
void
saveZoneInsidePlayerInfluence(short short1)
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(short short1) -
getGridSquare
-
setGridSquare
-
isInLoaded
public boolean isInLoaded(float float1, float float2) -
getChunk
-