Class GameServer
java.lang.Object
zombie.network.GameServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic Stringstatic intstatic final HashSet<UdpConnection> static intstatic final DiscordBotstatic final intstatic Stringstatic booleanstatic Stringstatic Stringstatic Threadstatic final intstatic final intstatic intstatic UdpConnectionstatic UdpConnectionstatic UdpConnectionstatic UdpConnectionstatic intstatic Stringstatic Stringstatic final UdpConnection[]static Booleanstatic intstatic final intstatic floatstatic UdpEnginestatic intstatic intstatic String[]static long[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddConnection(UdpConnection udpConnection) static voidaddDelayedDisconnect(UdpConnection udpConnection) static voidaddDisconnect(UdpConnection udpConnection) static voidaddIncoming(short short0, ByteBuffer byteBuffer, UdpConnection udpConnection) static voidaddXp(IsoPlayer player, PerkFactory.Perk perk, float float0) static voidaddXp(IsoPlayer player, PerkFactory.Perk perk, float float0, boolean boolean0) static voidaddXpMultiplier(IsoPlayer player, PerkFactory.Perk perk, float float0, int int0, int int1) static booleancanModifyPlayerStats(UdpConnection udpConnection, IsoPlayer player) static StringchangeRole(String string3, UdpConnection udpConnection0, String string0, String string1) static voiddisconnect(UdpConnection udpConnection, String string) static voiddisconnectPlayer(IsoPlayer player0, UdpConnection udpConnection) static voiddoDelayedDisconnect(IsoPlayer player) static voidstatic IsoPlayergetAnyPlayerFromConnection(UdpConnection udpConnection) static UdpConnectiongetConnectionByPlayerOnlineID(short short0) static UdpConnectiongetConnectionFromPlayer(IsoPlayer player) static shortstatic IsoPlayergetPlayerByRealUserName(String string) static IsoPlayergetPlayerByUserName(String string) static IsoPlayergetPlayerByUserNameForCommand(String string) static intstatic IsoPlayergetPlayerFromConnection(UdpConnection udpConnection, int int0) getPlayers(ArrayList<IsoPlayer> arrayList) static voidstatic booleanhelmetFall(IsoGameCharacter character, boolean boolean0) static voidstatic booleanisDelayedDisconnect(IsoPlayer player) static booleanisDelayedDisconnect(UdpConnection udpConnection) static booleanstatic booleanisSpawnBuilding(BuildingDef buildingDef) static voidkick(UdpConnection udpConnection, String string1, String string0) static voidloadModData(IsoGridSquare square) static voidstatic voidPlaySoundAtEveryPlayer(String string) static voidPlaySoundAtEveryPlayer(String string, int int0, int int1, int int2) static voidPlaySoundAtEveryPlayer(String string, int int1, int int0, int int3, boolean boolean0) static voidPlayWorldSoundServer(String string, boolean var1, IsoGridSquare square, float var3, float float0, float var5, boolean var6) static voidPlayWorldSoundServer(String string, IsoGridSquare square, float float0, int int0) static voidPlayWorldSoundServer(IsoGameCharacter character, String string, boolean var2, IsoGridSquare square, float var4, float float0, float var6, boolean var7) static voidPlayWorldSoundWavServer(String string, boolean var1, IsoGridSquare square, float var3, float float0, float var5, boolean var6) static Stringstatic voidreceiveBigWaterSplash(ByteBuffer byteBuffer, UdpConnection udpConnection1, short var2) static voidstatic voidreceiveEatBody(ByteBuffer byteBuffer, UdpConnection var1, short var2) static voidreceivePlayerConnect(ByteBuffer var0, UdpConnection var1, String var2) static voidreceivePlayerListensChannel(ByteBuffer byteBuffer, UdpConnection var1, short var2) static voidreceiveRadioDeviceDataState(ByteBuffer byteBuffer, UdpConnection udpConnection, short var2) static voidreceiveRadioServerData(ByteBuffer var0, UdpConnection udpConnection, short var2) static voidreceiveSyncRadioData(ByteBuffer byteBuffer, UdpConnection udpConnection0, short var2) static voidreceiveWorldMapPlayerPosition(ByteBuffer var0, UdpConnection var1, short var2) static voidremoveBrokenGlass(IsoWindow window) static intRemoveItemFromMap(IsoObject object) static voidsendAddItemsToContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) static voidsendAddItemToContainer(ItemContainer container, InventoryItem item) static voidsendAdminMessage(String string, int int2, int int1, int int0) static voidsendAlarm(int int1, int int0) static voidsendAmbient(String string, int int2, int int1, int int0, float float0) static voidsendBloodSplatter(HandWeapon weapon, float float0, float float1, float float2, Vector2 vector, boolean boolean0, boolean boolean1) static voidsendChangeSafety(Safety safety) static voidsendCharacterDeath(IsoDeadBody deadBody) static voidsendCompost(IsoCompost compost, UdpConnection udpConnection1) static voidsendCorpse(IsoDeadBody deadBody) static voidsendHelicopter(float float1, float float0, boolean boolean0) static voidsendHitCharacter(HitCharacter hitCharacter, PacketTypes.PacketType packetType, UdpConnection udpConnection1) static voidstatic voidsendIsoWaveSignal(long long0, int int3, int int2, int int1, String string0, String string1, String string2, float float2, float float1, float float0, int int0, boolean boolean0) static booleansendItemListNet(UdpConnection udpConnection1, IsoPlayer player2, ArrayList<InventoryItem> arrayList, IsoPlayer player0, String string0, String string1) static voidsendItemsInContainer(IsoObject object, ItemContainer container) static voidsendItemStats(InventoryItem item) static voidsendMetaGrid(int int1, int int2, int int3) static voidsendMetaGrid(int int2, int int1, int int0, UdpConnection udpConnection) static voidsendNonPvpZone(NonPvpZone nonPvpZone, boolean boolean0, UdpConnection udpConnection1) static voidsendObjectChange(IsoObject object0, String string, Object... objects) static voidsendObjectChange(IsoObject object, String string, KahluaTable table) static voidsendObjectModData(IsoObject object) static voidstatic voidsendPlayerConnected(IsoPlayer var0, UdpConnection var1) static voidsendPlayerExtraInfo(IsoPlayer player, UdpConnection var1) static voidsendPlayerInjuries(UdpConnection udpConnection, PlayerInjuriesPacket playerInjuriesPacket) static voidstatic voidsendRadioPostSilence(UdpConnection udpConnection) static voidsendReanimatedZombieID(IsoPlayer player, IsoZombie zombie0) static voidsendRemoveItemFromContainer(ItemContainer container, InventoryItem item) static voidsendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) static voidsendReplaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1) static voidsendServerCommand(String string0, String string1, KahluaTable table) static voidsendServerCommand(String string0, String string1, KahluaTable table, UdpConnection udpConnection) static voidsendServerCommand(IsoPlayer player, String string0, String string1, KahluaTable table) static voidsendServerCommandV(String string0, String string1, Object... objects) static voidstatic voidsendShortStatistic(UdpConnection udpConnection) static voidsendSlowFactor(IsoGameCharacter character) static voidstatic voidsendStatistic(UdpConnection udpConnection) static voidsendSyncClothing(IsoPlayer player, String var1, InventoryItem var2) static voidsendSyncPlayerFields(IsoPlayer player, byte byte0) static voidsendTeleport(IsoPlayer player0, float float2, float float1, float float0) static voidsendTickets(String string, UdpConnection udpConnection1) static voidsendWakeUpPlayer(IsoPlayer player, UdpConnection var1) static voidstatic voidstatic voidsendWorldSound(WorldSoundManager.WorldSound worldSound, UdpConnection var1) static voidsendZombieSound(IsoZombie.ZombieSound zombieSound, IsoZombie zombie0) static voidstatic voidsetCustomVariables(IsoPlayer player, UdpConnection udpConnection) voidsetDifficulty(String string) voidsetPoisonousBerry(String string) voidsetPoisonousMushroom(String string) static voidstatic voidstatic voidsmashWindow(IsoWindow window) static voidstartFireOnClient(IsoGridSquare square, int int1, boolean boolean1, int int0, boolean boolean0) static voidstatic voidstatic ServersteamGetInternetServerDetails(GameServerDetails gameServerDetails) static voidstopRain()static voidstatic voidsyncVisuals(IsoPlayer player) static voidtransmitBigWaterSplash(int int2, int int1, float float0, float float1) static voidtransmitBrokenGlass(IsoGridSquare square) static voidtransmitFishingData(int int1, int int2, gnu.trove.map.hash.TLongIntHashMap tLongIntHashMap, gnu.trove.map.hash.TLongObjectHashMap<FishSchoolManager.ChumData> tLongObjectHashMap) static voidupdateOverlayForClients(IsoObject object, String string, float float3, float float2, float float1, float float0, UdpConnection udpConnection) static voidupdateZombieControl(IsoZombie zombie0, short short0, int int0)
-
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 -
Seed
-
udpEngine
-
IDToAddressMap
-
IDToPlayerMap
-
Players
-
timeSinceKeepAlive
public static float timeSinceKeepAlive -
DebugPlayer
-
ResetID
public static int ResetID -
ServerMods
-
WorkshopItems
-
WorkshopInstallFolders
-
WorkshopTimeStamps
public static long[] WorkshopTimeStamps -
ServerName
-
discordBot
-
checksum
-
GameMap
-
bFastForward
public static boolean bFastForward -
ip
-
SlotToConnection
-
PlayerToAddressMap
-
playerToCoordsMap
-
countOfDroppedConnections
public static int countOfDroppedConnections -
removeZombiesConnection
-
removeAnimalsConnection
-
removeCorpsesConnection
-
removeVehiclesConnection
-
MainThread
-
tempPlayers
-
-
Constructor Details
-
GameServer
public GameServer()
-
-
Method Details
-
setupCoop
- Throws:
FileNotFoundException
-
main
-
setupSteamGameServer
public static void setupSteamGameServer() -
steamGetInternetServerDetails
-
rcon
-
sendTeleport
-
sendPlayerExtraInfo
-
canModifyPlayerStats
-
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 boolean0, UdpConnection udpConnection1) -
sendCompost
-
sendHelicopter
public static void sendHelicopter(float float1, float float0, boolean boolean0) -
sendZone
-
addXp
-
addXp
-
addXpMultiplier
public static void addXpMultiplier(IsoPlayer player, PerkFactory.Perk perk, float float0, int int0, int int1) -
startFireOnClient
public static void startFireOnClient(IsoGridSquare square, int int1, boolean boolean1, int int0, boolean boolean0) -
sendOptionsToClients
public static void sendOptionsToClients() -
sendCorpse
-
loadModData
-
PlayWorldSoundServer
public static void PlayWorldSoundServer(String string, IsoGridSquare square, float float0, int int0) -
PlayWorldSoundServer
public static void PlayWorldSoundServer(String string, boolean var1, IsoGridSquare square, float var3, float float0, float var5, boolean var6) -
PlayWorldSoundServer
public static void PlayWorldSoundServer(IsoGameCharacter character, String string, boolean var2, IsoGridSquare square, float var4, float float0, float var6, boolean var7) -
PlayWorldSoundWavServer
public static void PlayWorldSoundWavServer(String string, boolean var1, IsoGridSquare square, float var3, float float0, float var5, boolean var6) -
PlaySoundAtEveryPlayer
-
PlaySoundAtEveryPlayer
-
PlaySoundAtEveryPlayer
public static void PlaySoundAtEveryPlayer(String string, int int1, int int0, int int3, boolean boolean0) -
sendZombieSound
-
helmetFall
-
initClientCommandFilter
public static void initClientCommandFilter() -
getAnyPlayerFromConnection
-
getPlayerFromConnection
-
getPlayerByRealUserName
-
getPlayerByUserName
-
getPlayerByUserNameForCommand
-
getConnectionByPlayerOnlineID
-
getConnectionFromPlayer
-
sendAddItemToContainer
-
sendAddItemsToContainer
public static void sendAddItemsToContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) -
sendReplaceItemInContainer
public static void sendReplaceItemInContainer(ItemContainer container, InventoryItem item0, InventoryItem item1) -
sendRemoveItemFromContainer
-
sendRemoveItemsFromContainer
public static void sendRemoveItemsFromContainer(ItemContainer container, ArrayList<InventoryItem> arrayList) -
sendSyncPlayerFields
-
sendSyncClothing
-
syncVisuals
-
sendItemsInContainer
-
addConnection
-
addDisconnect
-
addDelayedDisconnect
-
doDelayedDisconnect
-
isDelayedDisconnect
-
isDelayedDisconnect
-
disconnectPlayer
-
getFreeSlot
public static short getFreeSlot() -
receiveClientConnect
-
sendMetaGrid
-
sendMetaGrid
public static void sendMetaGrid(int int1, int int2, int int3) -
setCustomVariables
-
sendPlayerConnected
-
receivePlayerConnect
-
sendInitialWorldState
-
sendObjectModData
-
sendSlowFactor
-
sendObjectChange
-
sendObjectChange
-
RemoveItemFromMap
-
sendBloodSplatter
public static void sendBloodSplatter(HandWeapon weapon, float float0, float float1, float float2, Vector2 vector, boolean boolean0, boolean boolean1) -
disconnect
-
addIncoming
-
smashWindow
-
removeBrokenGlass
-
sendHitCharacter
public static void sendHitCharacter(HitCharacter hitCharacter, PacketTypes.PacketType packetType, UdpConnection udpConnection1) -
sendCharacterDeath
-
sendItemStats
-
sendPlayerInjuries
public static void sendPlayerInjuries(UdpConnection udpConnection, PlayerInjuriesPacket playerInjuriesPacket) -
receiveEatBody
-
receiveSyncRadioData
public static void receiveSyncRadioData(ByteBuffer byteBuffer, UdpConnection udpConnection0, short var2) -
sendWorldSound
-
kick
-
startRain
public static void startRain() -
stopRain
public static void stopRain() -
sendWeather
public static void sendWeather() -
sendWorldMapPlayerPosition
public static void sendWorldMapPlayerPosition() -
receiveWorldMapPlayerPosition
-
syncClock
public static void syncClock() -
sendServerCommand
public static void sendServerCommand(String string0, String string1, KahluaTable table, UdpConnection udpConnection) -
sendServerCommand
-
sendServerCommandV
-
sendServerCommand
public static void sendServerCommand(IsoPlayer player, String string0, String string1, KahluaTable table) -
getPlayers
-
getPlayers
-
getPlayerCount
public static int getPlayerCount() -
changeRole
public static String changeRole(String string3, UdpConnection udpConnection0, String string0, String string1) throws SQLException - Throws:
SQLException
-
sendAmbient
-
sendChangeSafety
-
updateOverlayForClients
public static void updateOverlayForClients(IsoObject object, String string, float float3, float float2, float float1, float float0, UdpConnection udpConnection) -
sendReanimatedZombieID
-
receiveRadioServerData
-
receiveRadioDeviceDataState
public static void receiveRadioDeviceDataState(ByteBuffer byteBuffer, UdpConnection udpConnection, short var2) -
sendIsoWaveSignal
-
receivePlayerListensChannel
public static void receivePlayerListensChannel(ByteBuffer byteBuffer, UdpConnection var1, short var2) -
sendAlarm
public static void sendAlarm(int int1, int int0) -
isSpawnBuilding
-
sendAdminMessage
-
sendWakeUpPlayer
-
sendTickets
- Throws:
SQLException
-
sendItemListNet
public static boolean sendItemListNet(UdpConnection udpConnection1, IsoPlayer player2, ArrayList<InventoryItem> arrayList, IsoPlayer player0, String string0, String string1) -
getPoisonousBerry
-
setPoisonousBerry
-
getPoisonousMushroom
-
setPoisonousMushroom
-
getDifficulty
-
setDifficulty
-
transmitBrokenGlass
-
transmitBigWaterSplash
public static void transmitBigWaterSplash(int int2, int int1, float float0, float float1) -
receiveBigWaterSplash
public static void receiveBigWaterSplash(ByteBuffer byteBuffer, UdpConnection udpConnection1, short var2) -
transmitFishingData
public static void transmitFishingData(int int1, int int2, gnu.trove.map.hash.TLongIntHashMap tLongIntHashMap, gnu.trove.map.hash.TLongObjectHashMap<FishSchoolManager.ChumData> tLongObjectHashMap) -
isServerDropPackets
public static boolean isServerDropPackets() -
sendRadioPostSilence
public static void sendRadioPostSilence() -
sendRadioPostSilence
-