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 int
static final HashSet
<UdpConnection> static int
static final DiscordBot
static final int
static String
static boolean
static String
static String
static Thread
static final int
static final int
static int
static UdpConnection
static UdpConnection
static UdpConnection
static UdpConnection
static int
static String
static String
static final UdpConnection[]
static Boolean
static int
static final int
static float
static UdpEngine
static int
static int
static String[]
static long[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addConnection
(UdpConnection udpConnection) static void
addDelayedDisconnect
(UdpConnection udpConnection) static void
addDisconnect
(UdpConnection udpConnection) static void
addIncoming
(short short0, ByteBuffer byteBuffer, UdpConnection udpConnection) static void
addXp
(IsoPlayer player, PerkFactory.Perk perk, float float0) static void
addXp
(IsoPlayer player, PerkFactory.Perk perk, float float0, boolean boolean0) static void
addXpMultiplier
(IsoPlayer player, PerkFactory.Perk perk, float float0, int int0, int int1) static boolean
canModifyPlayerStats
(UdpConnection udpConnection, IsoPlayer player) static String
changeRole
(String string3, UdpConnection udpConnection0, String string0, String string1) static void
disconnect
(UdpConnection udpConnection, String string) static void
disconnectPlayer
(IsoPlayer player0, UdpConnection udpConnection) static void
doDelayedDisconnect
(IsoPlayer player) static void
static IsoPlayer
getAnyPlayerFromConnection
(UdpConnection udpConnection) static UdpConnection
getConnectionByPlayerOnlineID
(short short0) 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 int0) getPlayers
(ArrayList<IsoPlayer> arrayList) static void
static boolean
helmetFall
(IsoGameCharacter character, boolean boolean0) static void
static boolean
isDelayedDisconnect
(IsoPlayer player) static boolean
isDelayedDisconnect
(UdpConnection udpConnection) static boolean
static boolean
isSpawnBuilding
(BuildingDef buildingDef) static void
kick
(UdpConnection udpConnection, String string1, String string0) static void
loadModData
(IsoGridSquare square) static void
static void
PlaySoundAtEveryPlayer
(String string) static void
PlaySoundAtEveryPlayer
(String string, int int0, int int1, int int2) static void
PlaySoundAtEveryPlayer
(String string, int int1, int int0, int int3, boolean boolean0) static void
PlayWorldSoundServer
(String string, boolean var1, IsoGridSquare square, float var3, float float0, float var5, boolean var6) static void
PlayWorldSoundServer
(String string, IsoGridSquare square, float float0, int int0) static void
PlayWorldSoundServer
(IsoGameCharacter character, String string, boolean var2, IsoGridSquare square, float var4, float float0, float var6, boolean var7) static void
PlayWorldSoundWavServer
(String string, boolean var1, IsoGridSquare square, float var3, float float0, float var5, boolean var6) static String
static void
receiveBigWaterSplash
(ByteBuffer byteBuffer, UdpConnection udpConnection1, short var2) static void
static void
receiveEatBody
(ByteBuffer byteBuffer, UdpConnection var1, short var2) static void
receivePlayerConnect
(ByteBuffer var0, UdpConnection var1, String var2) static void
receivePlayerListensChannel
(ByteBuffer byteBuffer, UdpConnection var1, short var2) static void
receiveRadioDeviceDataState
(ByteBuffer byteBuffer, UdpConnection udpConnection, short var2) static void
receiveRadioServerData
(ByteBuffer var0, UdpConnection udpConnection, short var2) static void
receiveSyncRadioData
(ByteBuffer byteBuffer, UdpConnection udpConnection0, short var2) static void
receiveWorldMapPlayerPosition
(ByteBuffer var0, UdpConnection var1, short var2) static void
removeBrokenGlass
(IsoWindow window) static int
RemoveItemFromMap
(IsoObject object) static void
sendAddItemsToContainer
(ItemContainer container, ArrayList<InventoryItem> arrayList) static void
sendAddItemToContainer
(ItemContainer container, InventoryItem item) static void
sendAdminMessage
(String string, int int2, int int1, int int0) static void
sendAlarm
(int int1, int int0) static void
sendAmbient
(String string, int int2, int int1, int int0, float float0) static void
sendBloodSplatter
(HandWeapon weapon, float float0, float float1, float float2, Vector2 vector, boolean boolean0, boolean boolean1) static void
sendChangeSafety
(Safety safety) static void
sendCharacterDeath
(IsoDeadBody deadBody) static void
sendCompost
(IsoCompost compost, UdpConnection udpConnection1) static void
sendCorpse
(IsoDeadBody deadBody) static void
sendHelicopter
(float float1, float float0, boolean boolean0) static void
sendHitCharacter
(HitCharacter hitCharacter, PacketTypes.PacketType packetType, UdpConnection udpConnection1) static void
static void
sendIsoWaveSignal
(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 boolean
sendItemListNet
(UdpConnection udpConnection1, IsoPlayer player2, ArrayList<InventoryItem> arrayList, IsoPlayer player0, String string0, String string1) static void
sendItemsInContainer
(IsoObject object, ItemContainer container) static void
sendItemStats
(InventoryItem item) static void
sendMetaGrid
(int int1, int int2, int int3) static void
sendMetaGrid
(int int2, int int1, int int0, UdpConnection udpConnection) static void
sendNonPvpZone
(NonPvpZone nonPvpZone, boolean boolean0, UdpConnection udpConnection1) static void
sendObjectChange
(IsoObject object0, String string, Object... objects) static void
sendObjectChange
(IsoObject object, String string, se.krka.kahlua.vm.KahluaTable table) static void
sendObjectModData
(IsoObject object) static void
static void
sendPlayerConnected
(IsoPlayer var0, UdpConnection var1) static void
sendPlayerExtraInfo
(IsoPlayer player, UdpConnection var1) static void
sendPlayerInjuries
(UdpConnection udpConnection, PlayerInjuriesPacket playerInjuriesPacket) static void
static void
sendRadioPostSilence
(UdpConnection udpConnection) static void
sendReanimatedZombieID
(IsoPlayer player, IsoZombie zombie0) static void
sendRemoveItemFromContainer
(ItemContainer container, InventoryItem item) static void
sendRemoveItemsFromContainer
(ItemContainer container, ArrayList<InventoryItem> arrayList) static void
sendReplaceItemInContainer
(ItemContainer container, InventoryItem item0, InventoryItem item1) static void
sendServerCommand
(String string0, String string1, se.krka.kahlua.vm.KahluaTable table) static void
sendServerCommand
(String string0, String string1, se.krka.kahlua.vm.KahluaTable table, UdpConnection udpConnection) static void
sendServerCommand
(IsoPlayer player, String string0, String string1, se.krka.kahlua.vm.KahluaTable table) static void
sendServerCommandV
(String string0, String string1, Object... objects) static void
static void
sendShortStatistic
(UdpConnection udpConnection) static void
sendSlowFactor
(IsoGameCharacter character) static void
static void
sendStatistic
(UdpConnection udpConnection) static void
sendSyncClothing
(IsoPlayer player, String var1, InventoryItem var2) static void
sendSyncPlayerFields
(IsoPlayer player, byte byte0) static void
sendTeleport
(IsoPlayer player0, float float2, float float1, float float0) static void
sendTickets
(String string, UdpConnection udpConnection1) static void
sendWakeUpPlayer
(IsoPlayer player, UdpConnection var1) static void
static void
static void
sendWorldSound
(WorldSoundManager.WorldSound worldSound, UdpConnection var1) static void
sendZombieSound
(IsoZombie.ZombieSound zombieSound, IsoZombie zombie0) static void
static void
setCustomVariables
(IsoPlayer player, UdpConnection udpConnection) void
setDifficulty
(String string) void
setPoisonousBerry
(String string) void
setPoisonousMushroom
(String string) static void
static void
static void
smashWindow
(IsoWindow window) static void
startFireOnClient
(IsoGridSquare square, int int1, boolean boolean1, int int0, boolean boolean0) static void
static void
static Server
steamGetInternetServerDetails
(GameServerDetails gameServerDetails) static void
stopRain()
static void
static void
syncVisuals
(IsoPlayer player) static void
transmitBigWaterSplash
(int int2, int int1, float float0, float float1) static void
transmitBrokenGlass
(IsoGridSquare square) static void
transmitFishingData
(int int1, int int2, gnu.trove.map.hash.TLongIntHashMap tLongIntHashMap, gnu.trove.map.hash.TLongObjectHashMap<FishSchoolManager.ChumData> tLongObjectHashMap) static void
updateOverlayForClients
(IsoObject object, String string, float float3, float float2, float float1, float float0, UdpConnection udpConnection) static void
updateZombieControl
(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, se.krka.kahlua.vm.KahluaTable table, UdpConnection udpConnection) -
sendServerCommand
-
sendServerCommandV
-
sendServerCommand
-
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
-