Package zombie.network
Class GameServer
java.lang.Object
zombie.network.GameServer
public class GameServer
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static boolean
bDebug
static boolean
bFastForward
static boolean
bServer
static java.lang.String
checksum
static java.util.HashSet
DebugPlayer
static int
DEFAULT_PORT
static DiscordBot
discordBot
static java.lang.String
discordChannel
static java.lang.String
discordToken
static float
FastForwardMultiplier
static int
FPS
static java.lang.String
GameMap
static boolean
GUICommandline
static java.util.HashMap
IDToAddressMap
static java.util.HashMap
IDToPlayerMap
static java.lang.String
ip
static java.lang.String
IPCommandline
static int
MAX_PLAYERS
static int
MaxTicksSinceKeepAliveBeforeStall
static long[]
packetCounts
static java.util.ArrayList
Players
static java.util.HashMap
PlayerToBody
static int
PortCommandline
static int
ResetID
static java.util.ArrayList
ServerMods
static java.lang.String
ServerName
static KahluaTable
SpawnRegions
static int
SteamPortCommandline1
static int
SteamPortCommandline2
static java.lang.Boolean
SteamVACCommandline
static int
test
static float
timeSinceKeepAlive
static java.util.HashMap
transactionIDMap
static UdpEngine
udpEngine
static boolean
UseTCPForMapDownloads
static java.lang.String[]
WorkshopInstallFolders
static java.util.ArrayList
WorkshopItems
static long[]
WorkshopTimeStamps
static ObjectsSyncRequests
worldObjectsServerSyncReq
-
Constructor Summary
Constructors Constructor Description GameServer()
-
Method Summary
Modifier and Type Method Description static void
addConnection(UdpConnection udpConnection)
static void
addDisconnect(UdpConnection udpConnection)
static void
AddExplosiveTrap(HandWeapon handWeapon, IsoGridSquare square, boolean boolean1)
static void
addIncoming(short short1, java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
AddItemToMap(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
addXp(IsoPlayer player, PerkFactory.Perks perks, int int1)
static void
Chat(java.lang.String string, UdpConnection udpConnection, boolean boolean1)
static void
Chat(java.lang.String string, UdpConnection udpConnection, boolean boolean1, byte byte1)
static boolean
CheckPlayerStillValid(IsoPlayer player)
static void
createZombie()
static void
disconnect(UdpConnection udpConnection)
static void
disconnectPlayer(IsoPlayer player, UdpConnection udpConnection)
static void
doDamage(IsoGameCharacter gameCharacter, float float1)
static void
doMinimumInit()
static boolean
doSendZombies()
static void
doZombieDie(IsoZombie zombie, IsoGameCharacter gameCharacter)
static void
doZomboidDataInMainLoop(ZomboidNetData zomboidNetData)
static IsoPlayer
getAnyPlayerFromConnection(UdpConnection udpConnection)
static UdpConnection
getConnectionByPlayerOnlineID(java.lang.Integer integer)
static UdpConnection
getConnectionFromPlayer(IsoPlayer player)
java.lang.String
getDifficulty()
static int
getFreeSlot()
static IsoPlayer
getPlayerByRealUserName(java.lang.String string)
static IsoPlayer
getPlayerByUserName(java.lang.String string)
static IsoPlayer
getPlayerByUserNameForCommand(java.lang.String string)
static int
getPlayerCount()
static java.util.ArrayList
getPlayers()
java.lang.String
getPoisonousBerry()
java.lang.String
getPoisonousMushroom()
static void
heartBeat()
static void
initClientCommandFilter()
static boolean
isSpawnBuilding(BuildingDef buildingDef)
static void
loadModData(IsoGridSquare square)
static void
main(java.lang.String[] stringArray)
static void
PauseAllClients()
static void
PlaySoundAtEveryPlayer(java.lang.String string)
static void
PlaySoundAtEveryPlayer(java.lang.String string, int int1, int int2, int int3)
static void
PlaySoundAtEveryPlayer(java.lang.String string, int int1, int int2, int int3, boolean boolean1)
static void
PlayWorldSoundServer(java.lang.String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2)
static void
PlayWorldSoundWavServer(java.lang.String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2)
static java.lang.String
rcon(java.lang.String string)
static void
receiveClientConnect(UdpConnection udpConnection, ServerWorldDatabase.LogonResult logonResult)
static void
receivePlayerInfo(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
receivePlayerListensChannel(java.nio.ByteBuffer byteBuffer)
static void
receiveRadioDeviceDataState(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
receiveWaveSignal(java.nio.ByteBuffer byteBuffer)
static void
removeCorpseFromMap(IsoDeadBody deadBody)
static int
RemoveItemFromMap(IsoObject object)
static void
RemoveSpecialObjectFromSquare(IsoObject object)
static void
requestingChunk(ByteBufferReader byteBufferReader, UdpConnection udpConnection)
static void
sendAddItemToContainer(ItemContainer itemContainer, InventoryItem inventoryItem)
static void
sendAdminMessage(java.lang.String string, int int1, int int2, int int3)
static void
sendAlarm(int int1, int int2)
static void
sendAmbient(java.lang.String string, int int1, int int2, int int3, float float1)
static void
sendBloodSplatter(HandWeapon handWeapon, float float1, float float2, float float3, Vector2 vector2, boolean boolean1, boolean boolean2)
static void
sendCompost(IsoCompost compost, UdpConnection udpConnection)
static void
sendCorpse(IsoDeadBody deadBody)
static void
sendDeadZombie(IsoZombie zombie)
static void
SendDeath(IsoPlayer player)
static void
sendDeleteZombie(IsoZombie zombie)
static void
sendFuranceChange(BSFurnace bSFurnace, UdpConnection udpConnection)
static void
sendHelicopter(float float1, float float2, boolean boolean1)
static void
sendIsoWaveSignal(int int1, int int2, int int3, ChatMessage chatMessage, java.lang.String string, float float1, float float2, float float3, int int4, boolean boolean1)
static boolean
sendItemListNet(UdpConnection udpConnection, IsoPlayer player, java.util.ArrayList arrayList, IsoPlayer player2, java.lang.String string, java.lang.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, java.lang.String string, java.lang.Object[] objectArray)
static void
sendObjectChange(IsoObject object, java.lang.String string, KahluaTable kahluaTable)
static void
sendObjectModData(IsoObject object)
static void
SendOnBeaten(IsoPlayer player, float float1, float float2, float float3)
static void
sendOptionsToClients()
static void
sendPlayerDamagedByCarCrash(IsoPlayer player, float float1)
static void
sendPlayerExtraInfo(IsoPlayer player, UdpConnection udpConnection)
static void
sendReanimatedZombieID(IsoPlayer player, IsoZombie zombie)
static void
sendRemoveItemFromContainer(ItemContainer itemContainer, InventoryItem inventoryItem)
static void
sendSafehouse(SafeHouse safeHouse, boolean boolean1, UdpConnection udpConnection)
static void
sendServerCommand(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable)
static void
sendServerCommand(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable, UdpConnection udpConnection)
static void
sendServerCommand(IsoPlayer player, java.lang.String string, java.lang.String string2, KahluaTable kahluaTable)
static void
sendServerCommandV(java.lang.String string, java.lang.String string2, java.lang.Object[] objectArray)
static void
sendSlowFactor(IsoGameCharacter gameCharacter)
static void
sendWeather()
static void
sendZombie(IsoZombie zombie)
static void
sendZombieSound(IsoZombie.ZombieSound zombieSound, IsoZombie zombie)
static void
sendZone(IsoMetaGrid.Zone zone, UdpConnection udpConnection)
void
setDifficulty(java.lang.String string)
void
setPoisonousBerry(java.lang.String string)
void
setPoisonousMushroom(java.lang.String string)
static void
setupCoop()
static void
smashWindow(IsoWindow window, int int1)
static void
startFireOnClient(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
startFireOnClient(IsoGridSquare square, int int1, boolean boolean1, int int2, boolean boolean2)
static void
startRain()
static void
startServer()
static void
stopFire(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
stopRain()
static void
syncClock()
static void
SyncCustomLightSwitchSettings(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncDoorKey(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncIsoObject(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncIsoObjectReq(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncObjectChunkHashes(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncObjectChunkHashes(IsoChunk chunk, UdpConnection udpConnection)
static void
SyncObjectsGridSquareRequest(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncObjectsRequest(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
SyncThumpable(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
toggleSafety(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
static void
UnPauseAllClients()
static void
updateOverlayForClients(IsoObject object, java.lang.String string, float float1, float float2, float float3, float float4, UdpConnection udpConnection)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MAX_PLAYERS
public static final int MAX_PLAYERS- See Also:
- Constant Field Values
-
test
public static int test -
DEFAULT_PORT
public static int DEFAULT_PORT -
IPCommandline
public static java.lang.String IPCommandline -
PortCommandline
public static int PortCommandline -
SteamPortCommandline1
public static int SteamPortCommandline1 -
SteamPortCommandline2
public static int SteamPortCommandline2 -
SteamVACCommandline
public static java.lang.Boolean SteamVACCommandline -
GUICommandline
public static boolean GUICommandline -
FPS
public static final int FPS- See Also:
- Constant Field Values
-
bServer
public static boolean bServer -
bDebug
public static boolean bDebug -
udpEngine
-
IDToAddressMap
public static java.util.HashMap IDToAddressMap -
IDToPlayerMap
public static java.util.HashMap IDToPlayerMap -
Players
public static java.util.ArrayList Players -
timeSinceKeepAlive
public static float timeSinceKeepAlive -
MaxTicksSinceKeepAliveBeforeStall
public static int MaxTicksSinceKeepAliveBeforeStall -
PlayerToBody
public static java.util.HashMap PlayerToBody -
DebugPlayer
public static java.util.HashSet DebugPlayer -
ResetID
public static int ResetID -
ServerMods
public static java.util.ArrayList ServerMods -
WorkshopItems
public static java.util.ArrayList WorkshopItems -
WorkshopInstallFolders
public static java.lang.String[] WorkshopInstallFolders -
WorkshopTimeStamps
public static long[] WorkshopTimeStamps -
SpawnRegions
-
ServerName
public static java.lang.String ServerName -
checksum
public static java.lang.String checksum -
GameMap
public static java.lang.String GameMap -
bFastForward
public static boolean bFastForward -
FastForwardMultiplier
public static float FastForwardMultiplier -
UseTCPForMapDownloads
public static boolean UseTCPForMapDownloads -
packetCounts
public static final long[] packetCounts -
transactionIDMap
public static java.util.HashMap transactionIDMap -
worldObjectsServerSyncReq
-
discordToken
public static java.lang.String discordToken -
discordChannel
public static java.lang.String discordChannel -
discordBot
-
ip
public static java.lang.String ip
-
-
Constructor Details
-
GameServer
public GameServer()
-
-
Method Details
-
PauseAllClients
public static void PauseAllClients() -
UnPauseAllClients
public static void UnPauseAllClients() -
setupCoop
public static void setupCoop() throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
main
public static void main(java.lang.String[] stringArray) -
rcon
public static java.lang.String rcon(java.lang.String string) -
sendPlayerExtraInfo
-
doMinimumInit
public static void doMinimumInit() -
startServer
public static void startServer() throws java.net.ConnectException- Throws:
java.net.ConnectException
-
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
-
stopFire
-
startFireOnClient
-
startFireOnClient
public static void startFireOnClient(IsoGridSquare square, int int1, boolean boolean1, int int2, boolean boolean2) -
sendOptionsToClients
public static void sendOptionsToClients() -
sendCorpse
-
removeCorpseFromMap
-
loadModData
-
Chat
-
Chat
public static void Chat(java.lang.String string, UdpConnection udpConnection, boolean boolean1, byte byte1) -
doZomboidDataInMainLoop
-
PlayWorldSoundServer
public static void PlayWorldSoundServer(java.lang.String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) -
PlayWorldSoundWavServer
public static void PlayWorldSoundWavServer(java.lang.String string, boolean boolean1, IsoGridSquare square, float float1, float float2, float float3, boolean boolean2) -
PlaySoundAtEveryPlayer
public static void PlaySoundAtEveryPlayer(java.lang.String string, int int1, int int2, int int3) -
PlaySoundAtEveryPlayer
public static void PlaySoundAtEveryPlayer(java.lang.String string) -
PlaySoundAtEveryPlayer
public static void PlaySoundAtEveryPlayer(java.lang.String string, int int1, int int2, int int3, boolean boolean1) -
sendZombieSound
-
initClientCommandFilter
public static void initClientCommandFilter() -
getAnyPlayerFromConnection
-
getPlayerByRealUserName
-
getPlayerByUserName
-
getPlayerByUserNameForCommand
-
getConnectionByPlayerOnlineID
-
getConnectionFromPlayer
-
sendAddItemToContainer
public static void sendAddItemToContainer(ItemContainer itemContainer, InventoryItem inventoryItem) -
sendRemoveItemFromContainer
public static void sendRemoveItemFromContainer(ItemContainer itemContainer, InventoryItem inventoryItem) -
sendItemsInContainer
-
CheckPlayerStillValid
-
addConnection
-
addDisconnect
-
disconnectPlayer
-
heartBeat
public static void heartBeat() -
receivePlayerInfo
-
getFreeSlot
public static int 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
public static void sendObjectChange(IsoObject object, java.lang.String string, KahluaTable kahluaTable) -
sendObjectChange
public static void sendObjectChange(IsoObject object, java.lang.String string, java.lang.Object[] objectArray) -
sendZombie
-
createZombie
public static void createZombie() -
requestingChunk
-
SyncCustomLightSwitchSettings
public static void SyncCustomLightSwitchSettings(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
SyncIsoObject
-
SyncIsoObjectReq
-
SyncObjectChunkHashes
public static void SyncObjectChunkHashes(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
SyncObjectChunkHashes
-
SyncObjectsGridSquareRequest
public static void SyncObjectsGridSquareRequest(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
SyncObjectsRequest
-
SyncDoorKey
-
SyncThumpable
-
RemoveItemFromMap
-
doZombieDie
-
sendBloodSplatter
public static void sendBloodSplatter(HandWeapon handWeapon, float float1, float float2, float float3, Vector2 vector2, boolean boolean1, boolean boolean2) -
AddItemToMap
-
sendDeleteZombie
-
disconnect
-
addIncoming
public static void addIncoming(short short1, java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
smashWindow
-
SendDeath
-
SendOnBeaten
-
doSendZombies
public static boolean doSendZombies() -
sendDeadZombie
-
doDamage
-
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(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable, UdpConnection udpConnection) -
sendServerCommand
public static void sendServerCommand(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable) -
sendServerCommandV
public static void sendServerCommandV(java.lang.String string, java.lang.String string2, java.lang.Object[] objectArray) -
sendServerCommand
public static void sendServerCommand(IsoPlayer player, java.lang.String string, java.lang.String string2, KahluaTable kahluaTable) -
getPlayers
public static java.util.ArrayList getPlayers() -
getPlayerCount
public static int getPlayerCount() -
sendAmbient
public static void sendAmbient(java.lang.String string, int int1, int int2, int int3, float float1) -
toggleSafety
-
updateOverlayForClients
public static void updateOverlayForClients(IsoObject object, java.lang.String string, float float1, float float2, float float3, float float4, UdpConnection udpConnection) -
sendReanimatedZombieID
-
RemoveSpecialObjectFromSquare
-
sendSafehouse
public static void sendSafehouse(SafeHouse safeHouse, boolean boolean1, UdpConnection udpConnection) -
receiveRadioDeviceDataState
public static void receiveRadioDeviceDataState(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
sendIsoWaveSignal
public static void sendIsoWaveSignal(int int1, int int2, int int3, ChatMessage chatMessage, java.lang.String string, float float1, float float2, float float3, int int4, boolean boolean1) -
receiveWaveSignal
public static void receiveWaveSignal(java.nio.ByteBuffer byteBuffer) -
receivePlayerListensChannel
public static void receivePlayerListensChannel(java.nio.ByteBuffer byteBuffer) -
getPoisonousBerry
public java.lang.String getPoisonousBerry() -
setPoisonousBerry
public void setPoisonousBerry(java.lang.String string) -
getPoisonousMushroom
public java.lang.String getPoisonousMushroom() -
setPoisonousMushroom
public void setPoisonousMushroom(java.lang.String string) -
getDifficulty
public java.lang.String getDifficulty() -
setDifficulty
public void setDifficulty(java.lang.String string) -
sendAlarm
public static void sendAlarm(int int1, int int2) -
isSpawnBuilding
-
sendFuranceChange
-
sendAdminMessage
public static void sendAdminMessage(java.lang.String string, int int1, int int2, int int3) -
sendItemListNet
public static boolean sendItemListNet(UdpConnection udpConnection, IsoPlayer player, java.util.ArrayList arrayList, IsoPlayer player2, java.lang.String string, java.lang.String string2) -
sendPlayerDamagedByCarCrash
-