Package zombie.network
Class GameServer
java.lang.Object
zombie.network.GameServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
static boolean
static boolean
static boolean
static boolean
static String
static final HashSet
static int
static final DiscordBot
static final int
static String
static boolean
static final HashMap
static final HashMap
static String
static String
static LoginQueue
static Thread
static final int
static int
static final int
static final ArrayList
static int
static UdpConnection
static int
static final ArrayList
static String
static Boolean
static int
static final int
static float
static final HashMap
static UdpEngine
static int
static int
static String[]
static final ArrayList
static long[]
static final ObjectsSyncRequests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addConnection
(UdpConnection udpConnection) static void
addDisconnect
(UdpConnection udpConnection) static void
AddExplosiveTrap
(HandWeapon handWeapon, IsoGridSquare square, boolean boolean1) static void
addIncoming
(short short1, ByteBuffer byteBuffer, UdpConnection udpConnection) static void
addXp
(IsoPlayer player, PerkFactory.Perk perk, int int1) static void
disconnect
(UdpConnection udpConnection, String string) static void
disconnectPlayer
(IsoPlayer player, UdpConnection udpConnection) static void
static void
doZomboidDataInMainLoop
(ZomboidNetData zomboidNetData) static IsoPlayer
getAnyPlayerFromConnection
(UdpConnection udpConnection) static UdpConnection
getConnectionByPlayerOnlineID
(short short1) static UdpConnection
getConnectionFromPlayer
(IsoPlayer player) static short
static IsoPlayer
getPlayerByRealUserName
(String string) static IsoPlayer
getPlayerByUserName
(String string) static IsoPlayer
getPlayerByUserNameForCommand
(String string) static int
static IsoPlayer
getPlayerFromConnection
(UdpConnection udpConnection, int int1) static ArrayList
static ArrayList
getPlayers
(ArrayList arrayList) static void
static void
static void
static boolean
static boolean
isSpawnBuilding
(BuildingDef buildingDef) static void
kick
(UdpConnection udpConnection, String string, String string2) static void
loadModData
(IsoGridSquare square) static void
static void
static void
PlaySoundAtEveryPlayer
(String string) static void
PlaySoundAtEveryPlayer
(String string, int int1, int int2, int int3) static void
PlaySoundAtEveryPlayer
(String string, int int1, int int2, int int3, boolean boolean1) static void
PlayWorldSoundServer
(String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) static void
PlayWorldSoundServer
(IsoGameCharacter gameCharacter, String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) static void
PlayWorldSoundWavServer
(String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) static String
static void
receiveClientConnect
(UdpConnection udpConnection, ServerWorldDatabase.LogonResult logonResult) static void
receiveEatBody
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveKickOutOfSafehouse
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receivePlayerListensChannel
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveRadioDeviceDataState
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveRadioServerData
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveSyncCustomLightSettings
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveSyncRadioData
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveThump
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static void
receiveWaveSignal
(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) static int
RemoveItemFromMap
(IsoObject object) static void
sendAddItemToContainer
(ItemContainer itemContainer, InventoryItem inventoryItem) static void
sendAdminMessage
(String string, int int1, int int2, int int3) static void
sendAlarm
(int int1, int int2) static void
sendAmbient
(String string, int int1, int int2, int int3, float float1) static void
sendBecomeCorpse
(IsoDeadBody deadBody) static void
sendBloodSplatter
(HandWeapon handWeapon, float float1, float float2, float float3, Vector2 vector2, boolean boolean1, boolean boolean2) static void
sendChangeSafety
(Safety safety) static void
sendCompost
(IsoCompost compost, UdpConnection udpConnection) static void
sendCorpse
(IsoDeadBody deadBody) static void
sendFuranceChange
(BSFurnace bSFurnace, UdpConnection udpConnection) static void
sendHelicopter
(float float1, float float2, boolean boolean1) static void
sendIsoWaveSignal
(long long1, int int1, int int2, int int3, String string, String string2, String string3, float float1, float float2, float float3, int int4, boolean boolean1) static boolean
sendItemListNet
(UdpConnection udpConnection, IsoPlayer player, ArrayList arrayList, IsoPlayer player2, String string, String string2) static void
sendItemsInContainer
(IsoObject object, ItemContainer itemContainer) static void
sendMetaGrid
(int int1, int int2, int int3) static void
sendMetaGrid
(int int1, int int2, int int3, UdpConnection udpConnection) static void
sendNonPvpZone
(NonPvpZone nonPvpZone, boolean boolean1, UdpConnection udpConnection) static void
sendObjectChange
(IsoObject object, String string, Object[] objectArray) static void
sendObjectChange
(IsoObject object, String string, KahluaTable kahluaTable) static void
sendObjectModData
(IsoObject object) static void
static void
sendPlayerConnect
(IsoPlayer player, UdpConnection udpConnection) static void
sendPlayerDamage
(IsoPlayer player, UdpConnection udpConnection) static void
sendPlayerDamagedByCarCrash
(IsoPlayer player, float float1) static void
sendPlayerDeath
(DeadPlayerPacket deadPlayerPacket, UdpConnection udpConnection) static void
sendPlayerExtraInfo
(IsoPlayer player, UdpConnection udpConnection) static void
static void
sendRadioPostSilence
(UdpConnection udpConnection) static void
sendReanimatedZombieID
(IsoPlayer player, IsoZombie zombie) static void
sendRemoveCorpseFromMap
(IsoDeadBody deadBody) static void
sendRemoveItemFromContainer
(ItemContainer itemContainer, InventoryItem inventoryItem) static void
sendSafehouse
(SyncSafehousePacket syncSafehousePacket, UdpConnection udpConnection) static void
sendServerCommand
(String string, String string2, KahluaTable kahluaTable) static void
sendServerCommand
(String string, String string2, KahluaTable kahluaTable, UdpConnection udpConnection) static void
sendServerCommand
(IsoPlayer player, String string, String string2, KahluaTable kahluaTable) static void
sendServerCommandV
(String string, String string2, Object[] objectArray) static void
static void
sendShortStatistic
(UdpConnection udpConnection) static void
sendSlowFactor
(IsoGameCharacter gameCharacter) static void
static void
sendStatistic
(UdpConnection udpConnection) static void
sendTeleport
(IsoPlayer player, float float1, float float2, float float3) static void
sendValidatePacket
(UdpConnection udpConnection, boolean boolean1, boolean boolean2, boolean boolean3) static void
sendWakeUpPlayer
(IsoPlayer player, UdpConnection udpConnection) static void
static void
sendWorldSound
(UdpConnection udpConnection, WorldSoundManager.WorldSound worldSound) static void
sendWorldSound
(WorldSoundManager.WorldSound worldSound, UdpConnection udpConnection) static void
sendZombieDeath
(IsoZombie zombie) static void
sendZombieSound
(IsoZombie.ZombieSound zombieSound, IsoZombie zombie) static void
sendZone
(IsoMetaGrid.Zone zone, UdpConnection udpConnection) void
setDifficulty
(String string) void
setPoisonousBerry
(String string) void
setPoisonousMushroom
(String string) static void
static void
smashWindow
(IsoWindow window, int int1) static void
startFireOnClient
(IsoGridSquare square, int int1, boolean boolean1, int int2, boolean boolean2) static void
static void
static void
stopRain()
static void
static void
SyncObjectChunkHashes
(ByteBuffer byteBuffer, UdpConnection udpConnection) static void
SyncObjectChunkHashes
(IsoChunk chunk, UdpConnection udpConnection) static void
SyncObjectsGridSquareRequest
(ByteBuffer byteBuffer, UdpConnection udpConnection) static void
SyncObjectsRequest
(ByteBuffer byteBuffer, UdpConnection udpConnection) static void
transmitBrokenGlass
(IsoGridSquare square) static void
static void
updateOverlayForClients
(IsoObject object, String string, float float1, float float2, float float3, float float4, UdpConnection udpConnection) static void
updateZombieControl
(IsoZombie zombie, short short1, int int1)
-
Field Details
-
MAX_PLAYERS
public static final int MAX_PLAYERS- See Also:
-
TimeLimitForProcessPackets
public static final int TimeLimitForProcessPackets- See Also:
-
PacketsUpdateRate
public static final int PacketsUpdateRate- See Also:
-
FPS
public static final int FPS- See Also:
-
test
public static int test -
DEFAULT_PORT
public static int DEFAULT_PORT -
UDPPort
public static int UDPPort -
IPCommandline
-
PortCommandline
public static int PortCommandline -
UDPPortCommandline
public static int UDPPortCommandline -
SteamVACCommandline
-
GUICommandline
public static boolean GUICommandline -
bServer
public static boolean bServer -
bCoop
public static boolean bCoop -
bDebug
public static boolean bDebug -
bSoftReset
public static boolean bSoftReset -
udpEngine
-
IDToAddressMap
-
IDToPlayerMap
-
Players
-
timeSinceKeepAlive
public static float timeSinceKeepAlive -
MaxTicksSinceKeepAliveBeforeStall
public static int MaxTicksSinceKeepAliveBeforeStall -
DebugPlayer
-
ResetID
public static int ResetID -
ServerMods
-
WorkshopItems
-
WorkshopInstallFolders
-
WorkshopTimeStamps
public static long[] WorkshopTimeStamps -
ServerName
-
discordBot
-
checksum
-
GameMap
-
bFastForward
public static boolean bFastForward -
transactionIDMap
-
worldObjectsServerSyncReq
-
ip
-
removeZombiesConnection
-
loginQueue
-
MainThread
-
-
Constructor Details
-
GameServer
public GameServer()
-
-
Method Details
-
PauseAllClients
public static void PauseAllClients() -
UnPauseAllClients
public static void UnPauseAllClients() -
setupCoop
- Throws:
FileNotFoundException
-
main
-
rcon
-
sendTeleport
-
sendPlayerExtraInfo
-
doMinimumInit
- Throws:
IOException
-
startServer
- Throws:
ConnectException
-
sendShortStatistic
public static void sendShortStatistic() -
sendShortStatistic
-
sendStatistic
public static void sendStatistic() -
sendStatistic
-
getStatisticFromClients
public static void getStatisticFromClients() -
updateZombieControl
-
sendNonPvpZone
public static void sendNonPvpZone(NonPvpZone nonPvpZone, boolean boolean1, UdpConnection udpConnection) -
sendCompost
-
AddExplosiveTrap
-
sendHelicopter
public static void sendHelicopter(float float1, float float2, boolean boolean1) -
sendZone
-
addXp
-
startFireOnClient
public static void startFireOnClient(IsoGridSquare square, int int1, boolean boolean1, int int2, boolean boolean2) -
sendOptionsToClients
public static void sendOptionsToClients() -
sendBecomeCorpse
-
sendCorpse
-
sendPlayerConnect
-
loadModData
-
doZomboidDataInMainLoop
-
PlayWorldSoundServer
public static void PlayWorldSoundServer(String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) -
PlayWorldSoundServer
public static void PlayWorldSoundServer(IsoGameCharacter gameCharacter, String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) -
PlayWorldSoundWavServer
public static void PlayWorldSoundWavServer(String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) -
PlaySoundAtEveryPlayer
-
PlaySoundAtEveryPlayer
-
PlaySoundAtEveryPlayer
public static void PlaySoundAtEveryPlayer(String string, int int1, int int2, int int3, boolean boolean1) -
sendZombieSound
-
initClientCommandFilter
public static void initClientCommandFilter() -
getAnyPlayerFromConnection
-
getPlayerFromConnection
-
getPlayerByRealUserName
-
getPlayerByUserName
-
getPlayerByUserNameForCommand
-
getConnectionByPlayerOnlineID
-
getConnectionFromPlayer
-
sendAddItemToContainer
-
sendRemoveItemFromContainer
public static void sendRemoveItemFromContainer(ItemContainer itemContainer, InventoryItem inventoryItem) -
sendItemsInContainer
-
addConnection
-
addDisconnect
-
disconnectPlayer
-
heartBeat
public static void heartBeat() -
getFreeSlot
public static short getFreeSlot() -
receiveClientConnect
public static void receiveClientConnect(UdpConnection udpConnection, ServerWorldDatabase.LogonResult logonResult) -
sendMetaGrid
-
sendMetaGrid
public static void sendMetaGrid(int int1, int int2, int int3) -
sendObjectModData
-
sendSlowFactor
-
sendObjectChange
-
sendObjectChange
-
receiveSyncCustomLightSettings
public static void receiveSyncCustomLightSettings(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
SyncObjectChunkHashes
-
SyncObjectChunkHashes
-
SyncObjectsGridSquareRequest
-
SyncObjectsRequest
-
RemoveItemFromMap
-
sendBloodSplatter
public static void sendBloodSplatter(HandWeapon handWeapon, float float1, float float2, float float3, Vector2 vector2, boolean boolean1, boolean boolean2) -
disconnect
-
addIncoming
-
smashWindow
-
sendZombieDeath
-
sendPlayerDeath
-
sendPlayerDamage
-
sendRemoveCorpseFromMap
-
receiveEatBody
-
receiveSyncRadioData
public static void receiveSyncRadioData(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
receiveThump
-
sendWorldSound
public static void sendWorldSound(UdpConnection udpConnection, WorldSoundManager.WorldSound worldSound) -
sendWorldSound
public static void sendWorldSound(WorldSoundManager.WorldSound worldSound, UdpConnection udpConnection) -
kick
-
startRain
public static void startRain() -
stopRain
public static void stopRain() -
sendWeather
public static void sendWeather() -
syncClock
public static void syncClock() -
sendServerCommand
public static void sendServerCommand(String string, String string2, KahluaTable kahluaTable, UdpConnection udpConnection) -
sendServerCommand
-
sendServerCommandV
-
sendServerCommand
public static void sendServerCommand(IsoPlayer player, String string, String string2, KahluaTable kahluaTable) -
getPlayers
-
getPlayers
-
getPlayerCount
public static int getPlayerCount() -
sendAmbient
-
sendChangeSafety
-
updateOverlayForClients
public static void updateOverlayForClients(IsoObject object, String string, float float1, float float2, float float3, float float4, UdpConnection udpConnection) -
sendReanimatedZombieID
-
receiveKickOutOfSafehouse
public static void receiveKickOutOfSafehouse(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
sendSafehouse
public static void sendSafehouse(SyncSafehousePacket syncSafehousePacket, UdpConnection udpConnection) -
receiveRadioServerData
public static void receiveRadioServerData(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
receiveRadioDeviceDataState
public static void receiveRadioDeviceDataState(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
sendIsoWaveSignal
-
receiveWaveSignal
public static void receiveWaveSignal(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
receivePlayerListensChannel
public static void receivePlayerListensChannel(ByteBuffer byteBuffer, UdpConnection udpConnection, short short1) -
sendAlarm
public static void sendAlarm(int int1, int int2) -
isSpawnBuilding
-
sendFuranceChange
-
sendAdminMessage
-
sendWakeUpPlayer
-
sendItemListNet
-
sendPlayerDamagedByCarCrash
-
getPoisonousBerry
-
setPoisonousBerry
-
getPoisonousMushroom
-
setPoisonousMushroom
-
getDifficulty
-
setDifficulty
-
transmitBrokenGlass
-
isServerDropPackets
public static boolean isServerDropPackets() -
sendRadioPostSilence
public static void sendRadioPostSilence() -
sendRadioPostSilence
-
sendValidatePacket
public static void sendValidatePacket(UdpConnection udpConnection, boolean boolean1, boolean boolean2, boolean boolean3)
-