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 LoginQueue
static Thread
static final int
static int
static final int
static int
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
static void
addDelayedDisconnect
(UdpConnection udpConnection) static void
static void
addIncoming
(short id, ByteBuffer bb, UdpConnection connection) static void
addXp
(IsoPlayer isoPlayer, PerkFactory.Perk perk, float float0) static void
addXp
(IsoPlayer isoPlayer, PerkFactory.Perk perk, float float0, boolean boolean0) static void
addXpMultiplier
(IsoPlayer isoPlayer, PerkFactory.Perk perk, float float0, int int0, int int1) static boolean
canModifyPlayerStats
(UdpConnection udpConnection, IsoPlayer isoPlayer) static void
disconnect
(UdpConnection connection, String description) static void
disconnectPlayer
(IsoPlayer player, UdpConnection connection) static void
doDelayedDisconnect
(IsoPlayer isoPlayer) static void
static IsoPlayer
getAnyPlayerFromConnection
(UdpConnection connection) static UdpConnection
getConnectionByPlayerOnlineID
(short onlineID) static UdpConnection
getConnectionFromPlayer
(IsoPlayer player) static short
static IsoPlayer
getPlayerByRealUserName
(String username) static IsoPlayer
getPlayerByUserName
(String username) static IsoPlayer
getPlayerByUserNameForCommand
(String username) static int
static IsoPlayer
getPlayerFromConnection
(UdpConnection connection, int playerIndex) getPlayers
(ArrayList<IsoPlayer> players) static void
static void
static boolean
helmetFall
(IsoGameCharacter isoGameCharacter, boolean boolean0) static void
static boolean
isDelayedDisconnect
(IsoPlayer isoPlayer) static boolean
isDelayedDisconnect
(UdpConnection udpConnection) static boolean
static boolean
static void
kick
(UdpConnection connection, String description, String reason) static void
static void
static void
PlaySoundAtEveryPlayer
(String name) static void
PlaySoundAtEveryPlayer
(String name, int x, int y, int z) static void
PlaySoundAtEveryPlayer
(String name, int x, int y, int z, boolean usePlrCoords) static void
PlayWorldSoundServer
(String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside) static void
PlayWorldSoundServer
(String string, IsoGridSquare isoGridSquare, float float0, int int0) static void
PlayWorldSoundServer
(IsoGameCharacter character, String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside) static void
PlayWorldSoundWavServer
(String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside) static String
static void
receiveBigWaterSplash
(ByteBuffer byteBuffer, UdpConnection udpConnection1, short var2) static void
receiveClientConnect
(UdpConnection connection, ServerWorldDatabase.LogonResult r) static void
receiveEatBody
(ByteBuffer bb, UdpConnection connection, short packetType) static void
receivePlayerConnect
(ByteBuffer byteBuffer, UdpConnection udpConnection0, String string) static void
receivePlayerListensChannel
(ByteBuffer bb, UdpConnection connection, short packetType) static void
receiveRadioDeviceDataState
(ByteBuffer bb, UdpConnection connection, short packetType) static void
receiveRadioServerData
(ByteBuffer bb, UdpConnection connection, short packetType) static void
receiveSyncRadioData
(ByteBuffer bb, UdpConnection connection, short packetType) static void
receiveThump
(ByteBuffer bb, UdpConnection connection, short packetType) static void
receiveWorldMapPlayerPosition
(ByteBuffer byteBuffer, UdpConnection udpConnection, short var2) static void
removeBrokenGlass
(IsoWindow isoWindow) static int
static void
sendAddItemsToContainer
(ItemContainer itemContainer, ArrayList<InventoryItem> arrayList) static void
sendAddItemToContainer
(ItemContainer container, InventoryItem item) static void
sendAdminMessage
(String message, int x, int y, int z) static void
sendAlarm
(int x, int y) static void
sendAmbient
(String name, int x, int y, int radius, float volume) static void
sendAnimalDeath
(DeadAnimalPacket deadAnimalPacket, UdpConnection udpConnection1) static void
sendBecomeCorpse
(IsoDeadBody body) static void
sendBloodSplatter
(HandWeapon weapon, float x, float y, float z, Vector2 hitDir, boolean closeKilled, boolean radial) static void
sendChangeSafety
(Safety safety) static void
sendCompost
(IsoCompost compost, UdpConnection connection) static void
sendCorpse
(IsoDeadBody body) static void
sendHelicopter
(float x, float y, boolean active) static void
sendHitCharacter
(HitCharacter hitCharacter, PacketTypes.PacketType packetType, UdpConnection udpConnection1) static void
sendInitialWorldState
(UdpConnection udpConnection) static void
sendIsoWaveSignal
(long source, int sourceX, int sourceY, int channel, String msg, String guid, String codes, float r, float g, float b, int signalStrength, boolean isTV) static boolean
sendItemListNet
(UdpConnection ignore, IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String sessionID, String custom) static void
sendItemsInContainer
(IsoObject o, ItemContainer container) static void
sendItemStats
(InventoryItem inventoryItem) static void
sendMetaGrid
(int cellX, int cellY, int roomID) static void
sendMetaGrid
(int cellX, int cellY, int roomID, UdpConnection connection) static void
sendNonPvpZone
(NonPvpZone zone, boolean remove, UdpConnection connection) static void
sendObjectChange
(IsoObject isoObject, String string, Object... object0) static void
sendObjectChange
(IsoObject isoObject, String string, se.krka.kahlua.vm.KahluaTable kahluaTable) static void
static void
static void
sendPlayerConnected
(IsoPlayer isoPlayer, UdpConnection udpConnection) static void
sendPlayerDamagedByCarCrash
(IsoPlayer chr, float damage) static void
sendPlayerDeath
(DeadPlayerPacket packet, UdpConnection connection) static void
sendPlayerExtraInfo
(IsoPlayer p, UdpConnection connection) static void
sendPlayerInjuries
(UdpConnection udpConnection, SyncInjuriesPacket syncInjuriesPacket) static void
static void
static void
sendReanimatedZombieID
(IsoPlayer player, IsoZombie zombie) static void
sendRemoveCorpseFromMap
(IsoDeadBody deadBody) static void
sendRemoveItemFromContainer
(ItemContainer container, InventoryItem item) static void
sendRemoveItemsFromContainer
(ItemContainer itemContainer, ArrayList<InventoryItem> arrayList) static void
sendReplaceItemInContainer
(ItemContainer itemContainer, InventoryItem inventoryItem0, InventoryItem inventoryItem1) static void
sendServerCommand
(String string0, String string1, se.krka.kahlua.vm.KahluaTable kahluaTable) static void
sendServerCommand
(String string0, String string1, se.krka.kahlua.vm.KahluaTable kahluaTable, UdpConnection udpConnection) static void
sendServerCommand
(IsoPlayer isoPlayer, String string0, String string1, se.krka.kahlua.vm.KahluaTable kahluaTable) static void
sendServerCommandV
(String string0, String string1, Object... object0) static void
static void
static void
static void
static void
static void
sendSyncClothing
(IsoPlayer isoPlayer, String var1, InventoryItem var2) static void
sendSyncPlayerFields
(IsoPlayer isoPlayer, byte byte0) static void
sendTeleport
(IsoPlayer player, float x, float y, float z) static void
sendWakeUpPlayer
(IsoPlayer player, UdpConnection connection) static void
static void
static void
sendWorldSound
(WorldSoundManager.WorldSound sound, UdpConnection connection) static void
sendZombieDeath
(IsoZombie zombie) static void
sendZombieDeath
(DeadZombiePacket deadZombiePacket) static void
sendZombieSound
(IsoZombie.ZombieSound sound, IsoZombie zombie) static void
static void
setCustomVariables
(IsoPlayer isoPlayer, UdpConnection udpConnection) void
setDifficulty
(String _difficulty) void
setPoisonousBerry
(String _poisonousBerry) void
setPoisonousMushroom
(String _poisonousMushroom) static void
static void
smashWindow
(IsoWindow isoWindow) static void
startFireOnClient
(IsoGridSquare gridSquare, int fireStartingEnergy, boolean igniteOnAny, int Life, boolean smoke) static void
static void
static void
stopRain()
static void
static void
syncVisuals
(IsoPlayer isoPlayer) static void
transmitBigWaterSplash
(int int2, int int1, float float0, float float1) static void
static void
transmitFishingData
(int int1, int int2, gnu.trove.map.hash.TLongIntHashMap tLongIntHashMap, gnu.trove.map.hash.TLongObjectHashMap<FishSchoolManager.ChumData> tLongObjectHashMap) static void
updateHandEquips
(UdpConnection var0, IsoPlayer isoPlayer) static void
updateOverlayForClients
(IsoObject object, String spriteName, float r, float g, float b, float a, UdpConnection playerConnection) static void
updateZombieControl
(IsoZombie zombie, short variableParam, int value)
-
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 -
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 -
ip
-
SlotToConnection
-
PlayerToAddressMap
-
playerToCoordsMap
-
countOfDroppedConnections
public static int countOfDroppedConnections -
removeZombiesConnection
-
removeAnimalsConnection
-
loginQueue
-
MainThread
-
tempPlayers
-
-
Constructor Details
-
GameServer
public GameServer()
-
-
Method Details
-
setupCoop
- Throws:
FileNotFoundException
-
main
-
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
-
sendCompost
-
sendHelicopter
public static void sendHelicopter(float x, float y, boolean active) -
sendZone
-
addXp
-
addXp
public static void addXp(IsoPlayer isoPlayer, PerkFactory.Perk perk, float float0, boolean boolean0) -
addXpMultiplier
public static void addXpMultiplier(IsoPlayer isoPlayer, PerkFactory.Perk perk, float float0, int int0, int int1) -
startFireOnClient
public static void startFireOnClient(IsoGridSquare gridSquare, int fireStartingEnergy, boolean igniteOnAny, int Life, boolean smoke) -
sendOptionsToClients
public static void sendOptionsToClients() -
sendBecomeCorpse
-
sendCorpse
-
loadModData
-
PlayWorldSoundServer
public static void PlayWorldSoundServer(String string, IsoGridSquare isoGridSquare, float float0, int int0) -
PlayWorldSoundServer
public static void PlayWorldSoundServer(String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside) -
PlayWorldSoundServer
public static void PlayWorldSoundServer(IsoGameCharacter character, String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside) -
PlayWorldSoundWavServer
public static void PlayWorldSoundWavServer(String name, boolean loop, IsoGridSquare source, float pitchVar, float radius, float maxGain, boolean ignoreOutside) -
PlaySoundAtEveryPlayer
-
PlaySoundAtEveryPlayer
-
PlaySoundAtEveryPlayer
-
sendZombieSound
-
helmetFall
-
initClientCommandFilter
public static void initClientCommandFilter() -
getAnyPlayerFromConnection
-
getPlayerFromConnection
-
getPlayerByRealUserName
-
getPlayerByUserName
-
getPlayerByUserNameForCommand
-
getConnectionByPlayerOnlineID
-
getConnectionFromPlayer
-
sendAddItemToContainer
-
sendAddItemsToContainer
public static void sendAddItemsToContainer(ItemContainer itemContainer, ArrayList<InventoryItem> arrayList) -
sendReplaceItemInContainer
public static void sendReplaceItemInContainer(ItemContainer itemContainer, InventoryItem inventoryItem0, InventoryItem inventoryItem1) -
sendRemoveItemFromContainer
-
sendRemoveItemsFromContainer
public static void sendRemoveItemsFromContainer(ItemContainer itemContainer, ArrayList<InventoryItem> arrayList) -
sendSyncPlayerFields
-
sendSyncClothing
-
syncVisuals
-
sendItemsInContainer
-
addConnection
-
addDisconnect
-
addDelayedDisconnect
-
doDelayedDisconnect
-
isDelayedDisconnect
-
isDelayedDisconnect
-
disconnectPlayer
-
heartBeat
public static void heartBeat() -
getFreeSlot
public static short getFreeSlot() -
receiveClientConnect
public static void receiveClientConnect(UdpConnection connection, ServerWorldDatabase.LogonResult r) -
sendMetaGrid
-
sendMetaGrid
public static void sendMetaGrid(int cellX, int cellY, int roomID) -
setCustomVariables
-
sendPlayerConnected
-
receivePlayerConnect
public static void receivePlayerConnect(ByteBuffer byteBuffer, UdpConnection udpConnection0, String string) -
sendInitialWorldState
-
sendObjectModData
-
sendSlowFactor
-
sendObjectChange
-
sendObjectChange
-
updateHandEquips
-
RemoveItemFromMap
-
sendBloodSplatter
public static void sendBloodSplatter(HandWeapon weapon, float x, float y, float z, Vector2 hitDir, boolean closeKilled, boolean radial) -
disconnect
-
addIncoming
-
smashWindow
-
removeBrokenGlass
-
sendHitCharacter
public static void sendHitCharacter(HitCharacter hitCharacter, PacketTypes.PacketType packetType, UdpConnection udpConnection1) -
sendZombieDeath
-
sendZombieDeath
-
sendItemStats
-
sendPlayerDeath
-
sendAnimalDeath
-
sendPlayerInjuries
public static void sendPlayerInjuries(UdpConnection udpConnection, SyncInjuriesPacket syncInjuriesPacket) -
sendRemoveCorpseFromMap
-
receiveEatBody
-
receiveSyncRadioData
-
receiveThump
-
sendWorldSound
-
kick
-
startRain
public static void startRain() -
stopRain
public static void stopRain() -
sendWeather
public static void sendWeather() -
sendWorldMapPlayerPosition
public static void sendWorldMapPlayerPosition() -
receiveWorldMapPlayerPosition
public static void receiveWorldMapPlayerPosition(ByteBuffer byteBuffer, UdpConnection udpConnection, short var2) -
syncClock
public static void syncClock() -
sendServerCommand
public static void sendServerCommand(String string0, String string1, se.krka.kahlua.vm.KahluaTable kahluaTable, UdpConnection udpConnection) -
sendServerCommand
-
sendServerCommandV
-
sendServerCommand
-
getPlayers
-
getPlayers
-
getPlayerCount
public static int getPlayerCount() -
sendAmbient
-
sendChangeSafety
-
updateOverlayForClients
public static void updateOverlayForClients(IsoObject object, String spriteName, float r, float g, float b, float a, UdpConnection playerConnection) -
sendReanimatedZombieID
-
receiveRadioServerData
public static void receiveRadioServerData(ByteBuffer bb, UdpConnection connection, short packetType) -
receiveRadioDeviceDataState
public static void receiveRadioDeviceDataState(ByteBuffer bb, UdpConnection connection, short packetType) -
sendIsoWaveSignal
-
receivePlayerListensChannel
public static void receivePlayerListensChannel(ByteBuffer bb, UdpConnection connection, short packetType) -
sendAlarm
public static void sendAlarm(int x, int y) -
isSpawnBuilding
-
sendAdminMessage
-
sendWakeUpPlayer
-
sendItemListNet
public static boolean sendItemListNet(UdpConnection ignore, IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String sessionID, String custom) -
sendPlayerDamagedByCarCrash
-
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
-