Class GameClient

java.lang.Object
zombie.network.GameClient

public class GameClient extends Object
  • Field Details

    • instance

      public static final GameClient instance
    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
    • bClient

      public static boolean bClient
    • connection

      public static UdpConnection connection
    • count

      public static int count
    • ip

      public static String ip
    • ServerName

      public static String ServerName
    • localIP

      public static String localIP
    • password

      public static String password
    • googleKey

      public static String googleKey
    • allChatMuted

      public static boolean allChatMuted
    • username

      public static String username
    • serverPassword

      public static String serverPassword
    • useSteamRelay

      public static boolean useSteamRelay
    • authType

      public static int authType
    • udpEngine

      public UdpEngine udpEngine
    • ID

      public byte ID
    • timeSinceKeepAlive

      public float timeSinceKeepAlive
    • port

      public static int port
    • bPlayerConnectSent

      public boolean bPlayerConnectSent
    • checksum

      public static String checksum
    • checksumValid

      public static boolean checksumValid
    • pingsList

      public static List<Long> pingsList
    • GameMap

      public static String GameMap
    • bFastForward

      public static boolean bFastForward
    • loadedCells

      public static final ClientServerMap[] loadedCells
    • DEBUG_PING

      public int DEBUG_PING
    • bCoopInvite

      public static boolean bCoopInvite
    • connectedPlayers

      public ArrayList<IsoPlayer> connectedPlayers
    • idMapDirty

      public boolean idMapDirty
    • sendZombieTimer

      public final UpdateLimit sendZombieTimer
    • sendZombieRequestsTimer

      public final UpdateLimit sendZombieRequestsTimer
    • steamID

      public static long steamID
    • positions

      public static final Map<Short,Vector2> positions
    • ServerSpawnRegions

      public se.krka.kahlua.vm.KahluaTable ServerSpawnRegions
    • bConnected

      public boolean bConnected
    • TimeSinceLastUpdate

      public int TimeSinceLastUpdate
    • ping

      public int ping
    • ServerPredictedAhead

      public static float ServerPredictedAhead
    • IDToPlayerMap

      public static final HashMap<Short,IsoPlayer> IDToPlayerMap
    • IDToZombieMap

      public static final gnu.trove.map.hash.TShortObjectHashMap<IsoZombie> IDToZombieMap
    • bIngame

      public static boolean bIngame
    • askPing

      public static boolean askPing
    • askCustomizationData

      public static boolean askCustomizationData
    • sendQR

      public static boolean sendQR
    • ServerMods

      public final ArrayList<String> ServerMods
    • erosionConfig

      public ErosionConfig erosionConfig
    • startAuth

      public static Calendar startAuth
    • poisonousBerry

      public static String poisonousBerry
    • poisonousMushroom

      public static String poisonousMushroom
  • Constructor Details

    • GameClient

      public GameClient()
  • Method Details

    • getPlayerByOnlineID

      public IsoPlayer getPlayerByOnlineID(short id)
    • init

      public void init()
    • startClient

      public void startClient()
    • receiveStatistic

      public static void receiveStatistic(ByteBuffer byteBuffer, short var1)
    • receiveStatisticRequest

      public static void receiveStatisticRequest(ByteBuffer byteBuffer, short var1)
    • generateSecretKey

      public String generateSecretKey(String var1)
    • getGoogleAuthenticatorBarCode

      public String getGoogleAuthenticatorBarCode(String string1, String string2, String string0)
    • getQR

      public String getQR(String string3, String string2)
    • receiveZombieSimulation

      public static void receiveZombieSimulation(ByteBuffer byteBuffer, short var1)
    • Shutdown

      public void Shutdown()
    • update

      public void update()
    • smashWindow

      public void smashWindow(IsoWindow window)
    • removeBrokenGlass

      public void removeBrokenGlass(IsoWindow window)
    • receivePingFromClient

      public static void receivePingFromClient(ByteBuffer byteBuffer, short var1)
    • delayPacket

      public void delayPacket(int int1, int int2, int var3)
    • receiveAddBrokenGlass

      public static void receiveAddBrokenGlass(ByteBuffer byteBuffer, short var1)
    • sendBigWaterSplash

      public static void sendBigWaterSplash(int int0, int int1, float float0, float float1)
    • receiveBigWaterSplash

      public static void receiveBigWaterSplash(ByteBuffer byteBuffer, short var1)
    • sendFishingDataRequest

      public static void sendFishingDataRequest()
    • receiveFishingData

      public static void receiveFishingData(ByteBuffer byteBuffer, short var1)
    • receivePlayerDamageFromCarCrash

      public static void receivePlayerDamageFromCarCrash(ByteBuffer byteBuffer, short var1)
    • receivePacketCounts

      public static void receivePacketCounts(ByteBuffer byteBuffer, short var1)
    • requestPacketCounts

      public void requestPacketCounts()
    • IsClientPaused

      public static boolean IsClientPaused()
    • setIsClientPaused

      public static void setIsClientPaused(boolean boolean0)
    • receiveChatMessageToPlayer

      public static void receiveChatMessageToPlayer(ByteBuffer byteBuffer, short var1)
    • receivePlayerConnectedToChat

      public static void receivePlayerConnectedToChat(ByteBuffer var0, short var1)
    • receivePlayerJoinChat

      public static void receivePlayerJoinChat(ByteBuffer byteBuffer, short var1)
    • receiveInvMngRemoveItem

      public static void receiveInvMngRemoveItem(ByteBuffer byteBuffer, short var1)
    • receiveInvMngGetItem

      public static void receiveInvMngGetItem(ByteBuffer byteBuffer, short var1) throws IOException
      Throws:
      IOException
    • receiveInvMngReqItem

      public static void receiveInvMngReqItem(ByteBuffer byteBuffer, short var1) throws IOException
      Throws:
      IOException
    • invMngRequestItem

      public static void invMngRequestItem(int int0, String string, short short0, String var3)
    • invMngRequestRemoveItem

      public static void invMngRequestRemoveItem(int int0, short short0, String var2)
    • receiveSyncFaction

      public static void receiveSyncFaction(ByteBuffer byteBuffer, short var1)
    • receiveChangeTextColor

      public static void receiveChangeTextColor(ByteBuffer byteBuffer, short var1)
    • receivePlaySoundEveryPlayer

      public static void receivePlaySoundEveryPlayer(ByteBuffer byteBuffer, short var1)
    • receiveAddAlarm

      public static void receiveAddAlarm(ByteBuffer byteBuffer, short var1)
    • receiveSyncDoorKey

      public static void receiveSyncDoorKey(ByteBuffer byteBuffer, short var1)
    • sendAddXp

      public void sendAddXp(IsoPlayer player, PerkFactory.Perk perk, float float0, boolean boolean0)
    • sendGetAnimalTracks

      public void sendGetAnimalTracks(IsoGameCharacter character)
    • sendSyncXp

      public void sendSyncXp(IsoPlayer player)
    • sendChangeSafety

      public static void sendChangeSafety(Safety safety)
    • addDisconnectPacket

      public void addDisconnectPacket(int packet)
    • connectionLost

      public void connectionLost()
    • SendCommandToServer

      public static void SendCommandToServer(String command)
    • sendServerPing

      public static void sendServerPing(long timestamp)
    • receiveStopRain

      public static void receiveStopRain(ByteBuffer var0, short var1)
    • receiveWeather

      public static void receiveWeather(ByteBuffer byteBuffer, short var1)
    • receiveWorldMapPlayerPosition

      public static void receiveWorldMapPlayerPosition(ByteBuffer byteBuffer, short var1)
    • receiveWorldMap

      public static void receiveWorldMap(ByteBuffer byteBuffer, short var1) throws IOException
      Throws:
      IOException
    • setRequest

      public void setRequest(zombie.network.GameClient.RequestState _request)
    • GameLoadingRequestData

      public void GameLoadingRequestData()
    • receiveSendCustomColor

      public static void receiveSendCustomColor(ByteBuffer byteBuffer, short var1)
    • receiveUpdateItemSprite

      public static void receiveUpdateItemSprite(ByteBuffer byteBuffer, short var1)
    • getServerSpawnRegions

      public se.krka.kahlua.vm.KahluaTable getServerSpawnRegions()
    • sendZombieHit

      public static void sendZombieHit(IsoZombie zombie, IsoPlayer player)
    • sendAnimalHitPlayer

      public static void sendAnimalHitPlayer(IsoGameCharacter character, IsoMovingObject movingObject, float float0, boolean boolean0)
    • sendAnimalHitAnimal

      public static void sendAnimalHitAnimal(IsoGameCharacter character, IsoMovingObject movingObject, float float0, boolean boolean0)
    • sendAnimalHitThumpable

      public static void sendAnimalHitThumpable(IsoGameCharacter character)
    • sendForageItemFound

      public static void sendForageItemFound(IsoPlayer player, String string, float float0)
    • sendPlayerHit

      public static boolean sendPlayerHit(IsoGameCharacter character, IsoObject object, HandWeapon weapon, float float1, boolean boolean3, float float0, boolean boolean1, boolean boolean4, boolean boolean2)
    • sendVehicleHit

      public static void sendVehicleHit(IsoPlayer player, IsoGameCharacter character, BaseVehicle vehicle, float float0, boolean boolean0, int int0, float float1, boolean boolean1)
    • sendZombieDeath

      public static void sendZombieDeath(IsoZombie zombie)
    • sendAnimalDeath

      public static void sendAnimalDeath(IsoAnimal animal)
    • sendPlayerDeath

      public static void sendPlayerDeath(IsoPlayer player)
    • sendPlayerDamage

      public static void sendPlayerDamage(IsoPlayer player)
    • sendPlayerInjuries

      public static void sendPlayerInjuries(IsoPlayer player)
    • sendRemoveCorpseFromMap

      public static void sendRemoveCorpseFromMap(IsoDeadBody deadBody)
    • sendEvent

      public static void sendEvent(IsoPlayer isoPlayer, String event)
    • sendAction

      public static void sendAction(BaseAction action, boolean operation)
    • sendEatBody

      public static void sendEatBody(IsoZombie zombie, IsoMovingObject target)
    • receiveEatBody

      public static void receiveEatBody(ByteBuffer bb, short packetType)
    • sendThump

      public static void sendThump(IsoGameCharacter zombie, Thumpable thumpable)
    • receiveSyncRadioData

      public static void receiveSyncRadioData(ByteBuffer bb, short packetType)
    • receiveThump

      public static void receiveThump(ByteBuffer bb, short packetType)
    • sendWorldSound

      public void sendWorldSound(WorldSoundManager.WorldSound sound)
    • sendLoginQueueRequest

      public void sendLoginQueueRequest()
    • sendLoginQueueDone

      public void sendLoginQueueDone(long long0)
    • canSeePlayerStats

      public static boolean canSeePlayerStats()
    • sendPersonalColor

      public void sendPersonalColor(IsoPlayer player)
    • sendChangedPlayerStats

      public void sendChangedPlayerStats(IsoPlayer otherPlayer)
    • receiveChangePlayerStats

      public static void receiveChangePlayerStats(ByteBuffer byteBuffer, short var1)
    • sendPlayerConnect

      public void sendPlayerConnect(IsoPlayer player)
    • sendCreatePlayer

      public static void sendCreatePlayer(byte byte0)
    • sendPlayer2

      public void sendPlayer2(IsoPlayer isoPlayer)
    • sendPlayer

      public void sendPlayer(IsoPlayer isoPlayer)
    • heartBeat

      public void heartBeat()
    • getZombie

      public static IsoZombie getZombie(short id)
    • sendPlayerExtraInfo

      public static void sendPlayerExtraInfo(IsoPlayer p)
    • setResetID

      public void setResetID(int resetID)
    • loadResetID

      public void loadResetID()
    • getPlayers

      public ArrayList<IsoPlayer> getPlayers()
    • sendWeaponHit

      public void sendWeaponHit(IsoPlayer player, HandWeapon weapon, IsoObject object)
    • receiveSyncIsoObject

      public static void receiveSyncIsoObject(ByteBuffer byteBuffer, short var1)
    • receivePlayerTimeout

      public static void receivePlayerTimeout(short playerID)
    • disconnect

      public void disconnect(boolean boolean0)
    • resetDisconnectTimer

      public void resetDisconnectTimer()
    • getReconnectCountdownTimer

      public String getReconnectCountdownTimer()
    • canConnect

      public boolean canConnect()
    • addIncoming

      public void addIncoming(short id, ByteBuffer bb)
    • doDisconnect

      public void doDisconnect(String string)
    • removeZombieFromCache

      public void removeZombieFromCache(IsoZombie z)
    • sendWorldMessage

      public void sendWorldMessage(String line)
    • doConnect

      public void doConnect(String string0, String string1, String string2, String string3, String string4, String string5, String string6, boolean boolean0, int int0)
    • doConnect

      public void doConnect(String string0, String string1, String string2, String string3, String string4, String string5, String string6, boolean boolean0, int int0, String string7)
    • doConnectCoop

      public void doConnectCoop(String serverSteamID)
    • scoreboardUpdate

      public void scoreboardUpdate()
    • receiveAddAmbient

      public static void receiveAddAmbient(ByteBuffer byteBuffer, short var1)
    • sendClientCommand

      public void sendClientCommand(IsoPlayer player, String string0, String string1, se.krka.kahlua.vm.KahluaTable table)
    • sendClientCommandV

      public void sendClientCommandV(IsoPlayer player, String string0, String string1, Object... objects)
    • sendAttachedItem

      public void sendAttachedItem(IsoPlayer player, String location, InventoryItem item)
    • sendVisual

      public void sendVisual(IsoPlayer player)
    • receiveBloodSplatter

      public static void receiveBloodSplatter(ByteBuffer byteBuffer, short var1)
    • receiveZombieSound

      public static void receiveZombieSound(ByteBuffer byteBuffer, short var1)
    • eatFood

      public void eatFood(IsoPlayer player, Food food, float percentage)
    • drink

      public void drink(IsoPlayer player, float drink)
    • addToItemSendBuffer

      public void addToItemSendBuffer(IsoObject parent, ItemContainer container, InventoryItem item)
    • addToItemRemoveSendBuffer

      public void addToItemRemoveSendBuffer(IsoObject parent, ItemContainer container, InventoryItem item)
    • sendAddedRemovedItems

      public void sendAddedRemovedItems(boolean force)
    • checkAddedRemovedItems

      public void checkAddedRemovedItems(IsoObject aboutToRemove)
    • sendRemoveItemFromContainer

      public static void sendRemoveItemFromContainer(ItemContainer container, InventoryItem item)
    • sendItemStats

      public void sendItemStats(InventoryItem item)
    • PlayWorldSound

      public void PlayWorldSound(String name, int x, int y, byte z)
    • PlaySound

      public void PlaySound(String name, boolean loop, IsoMovingObject object)
    • StopSound

      public void StopSound(IsoMovingObject object, String soundName, boolean trigger)
    • startLocalServer

      public void startLocalServer() throws Exception
      Throws:
      Exception
    • sendPing

      public static void sendPing()
    • receiveVehicles

      public static void receiveVehicles(ByteBuffer byteBuffer, short var1)
    • getPlayerFromUsername

      public IsoPlayer getPlayerFromUsername(String _username)
    • destroy

      public static void destroy(IsoObject obj)
    • sendStopFire

      public static void sendStopFire(IsoGridSquare sq)
    • receiveRadioDeviceDataState

      public static void receiveRadioDeviceDataState(ByteBuffer bb, short packetType)
    • sendRadioServerDataRequest

      public static void sendRadioServerDataRequest()
    • receiveRadioServerData

      public static void receiveRadioServerData(ByteBuffer bb, short packetType)
    • receiveRadioPostSilence

      public static void receiveRadioPostSilence(ByteBuffer bb, short packetType)
    • sendIsoWaveSignal

      public static void sendIsoWaveSignal(int sourceX, int sourceY, int channel, String msg, String guid, String codes, float r, float g, float b, int signalStrength, boolean isTV)
    • sendPlayerListensChannel

      public static void sendPlayerListensChannel(int channel, boolean listenmode, boolean isTV)
    • sendCompost

      public static void sendCompost(IsoCompost isoCompost)
    • requestUserlog

      public void requestUserlog(String user)
    • addUserlog

      public void addUserlog(String user, String type, String text)
    • removeUserlog

      public void removeUserlog(String user, String type, String text)
    • addWarningPoint

      public void addWarningPoint(String user, String reason, int amount)
    • getDBSchema

      public void getDBSchema()
    • receiveGetDBSchema

      public static void receiveGetDBSchema(ByteBuffer byteBuffer, short var1)
    • getTableResult

      public void getTableResult(String tableName, int numberPerPages)
    • receiveGetTableResult

      public static void receiveGetTableResult(ByteBuffer byteBuffer, short var1)
    • executeQuery

      public void executeQuery(String string, se.krka.kahlua.vm.KahluaTable table)
    • getConnectedPlayers

      public ArrayList<IsoPlayer> getConnectedPlayers()
    • sendNonPvpZone

      public static void sendNonPvpZone(NonPvpZone nonPvpZone, boolean remove)
    • sendFaction

      public static void sendFaction(Faction faction, boolean remove)
    • sendFactionInvite

      public static void sendFactionInvite(Faction faction, IsoPlayer host, String invited)
    • acceptFactionInvite

      public static void acceptFactionInvite(Faction faction, String host)
    • getBannedIPs

      public static void getBannedIPs()
    • addTicket

      public static void addTicket(String author, String message, int ticketID)
    • getTickets

      public static void getTickets(String author)
    • removeTicket

      public static void removeTicket(int ticketID)
    • sendItemListNet

      public static boolean sendItemListNet(IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String sessionID, String custom)
    • receiveSendItemListNet

      public static void receiveSendItemListNet(ByteBuffer byteBuffer, short var1)
    • requestTrading

      public void requestTrading(IsoPlayer you, IsoPlayer other)
    • acceptTrading

      public void acceptTrading(IsoPlayer you, IsoPlayer other, boolean accept)
    • tradingUISendAddItem

      public void tradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem item)
    • tradingUISendRemoveItem

      public void tradingUISendRemoveItem(IsoPlayer var1, IsoPlayer var2, InventoryItem var3)
    • tradingUISendUpdateState

      public void tradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state)
    • setServerStatisticEnable

      public static void setServerStatisticEnable(boolean enable)
    • getServerStatisticEnable

      public static boolean getServerStatisticEnable()
    • receiveSpawnRegion

      public static void receiveSpawnRegion(ByteBuffer byteBuffer, short var1)
    • receiveClimateManagerPacket

      public static void receiveClimateManagerPacket(ByteBuffer byteBuffer, short var1)
    • receivePassengerMap

      public static void receivePassengerMap(ByteBuffer byteBuffer, short var1)
    • receiveIsoRegionServerPacket

      public static void receiveIsoRegionServerPacket(ByteBuffer byteBuffer, short var1)
    • sendIsoRegionDataRequest

      public static void sendIsoRegionDataRequest()
    • sendSandboxOptionsToServer

      public void sendSandboxOptionsToServer(SandboxOptions options)
    • receiveSandboxOptions

      public static void receiveSandboxOptions(ByteBuffer byteBuffer, short var1)
    • receiveChunkObjectState

      public static void receiveChunkObjectState(ByteBuffer byteBuffer, short var1)
    • receivePlayerLeaveChat

      public static void receivePlayerLeaveChat(ByteBuffer byteBuffer, short var1)
    • receiveInitPlayerChat

      public static void receiveInitPlayerChat(ByteBuffer byteBuffer, short var1)
    • receiveAddChatTab

      public static void receiveAddChatTab(ByteBuffer byteBuffer, short var1)
    • receiveRemoveChatTab

      public static void receiveRemoveChatTab(ByteBuffer byteBuffer, short var1)
    • receivePlayerNotFound

      public static void receivePlayerNotFound(ByteBuffer byteBuffer, short var1)
    • sendPerks

      public static void sendPerks(IsoPlayer player)
    • receiveSyncPerks

      public static void receiveSyncPerks(ByteBuffer byteBuffer, short var1)
    • sendWeight

      public static void sendWeight(IsoPlayer player)
    • receiveSyncWeight

      public static void receiveSyncWeight(ByteBuffer byteBuffer, short var1)
    • sendEquippedRadioFreq

      public static void sendEquippedRadioFreq(IsoPlayer plyr)
    • receiveSyncEquippedRadioFreq

      public static void receiveSyncEquippedRadioFreq(ByteBuffer byteBuffer, short var1)
    • sendSneezingCoughing

      public static void sendSneezingCoughing(IsoPlayer player, int int0, byte byte0)
    • rememberPlayerPosition

      public static void rememberPlayerPosition(IsoPlayer player, float float0, float float1)