Class GameClient

java.lang.Object
zombie.network.GameClient

public class GameClient
extends java.lang.Object
  • Field Details

    • instance

      public static final GameClient instance
    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
      Constant Field Values
    • bClient

      public static boolean bClient
    • connection

      public static UdpConnection connection
    • count

      public static int count
    • ip

      public static java.lang.String ip
    • localIP

      public static java.lang.String localIP
    • password

      public static java.lang.String password
    • allChatMuted

      public static boolean allChatMuted
    • username

      public static java.lang.String username
    • serverPassword

      public static java.lang.String serverPassword
    • udpEngine

      public UdpEngine udpEngine
    • accessLevel

      public static java.lang.String accessLevel
    • ID

      public byte ID
    • timeSinceKeepAlive

      public float timeSinceKeepAlive
    • port

      public static int port
    • bPlayerConnectSent

      public boolean bPlayerConnectSent
    • checksum

      public static java.lang.String checksum
    • checksumValid

      public static boolean checksumValid
    • pingsList

      public static java.util.List pingsList
    • GameMap

      public static java.lang.String GameMap
    • bFastForward

      public static boolean bFastForward
    • loadedCells

      public static final ClientServerMap[] loadedCells
    • DEBUG_PING

      public int DEBUG_PING
    • objectSyncReq

      public IsoObjectSyncRequests objectSyncReq
    • worldObjectsSyncReq

      public ObjectsSyncRequests worldObjectsSyncReq
    • bCoopInvite

      public static boolean bCoopInvite
    • sendZombieTimer

      public final UpdateLimit sendZombieTimer
    • sendZombieRequestsTimer

      public final UpdateLimit sendZombieRequestsTimer
    • positions

      public static java.util.Map positions
    • ServerSpawnRegions

      public KahluaTable ServerSpawnRegions
    • bConnected

      public boolean bConnected
    • TimeSinceLastUpdate

      public int TimeSinceLastUpdate
    • ping

      public int ping
    • ServerPredictedAhead

      public static float ServerPredictedAhead
    • IDToPlayerMap

      public static final java.util.HashMap IDToPlayerMap
    • IDToZombieMap

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

      public static boolean bIngame
    • askPing

      public static boolean askPing
    • ServerMods

      public final java.util.ArrayList ServerMods
    • erosionConfig

      public ErosionConfig erosionConfig
    • startAuth

      public static java.util.Calendar startAuth
    • poisonousBerry

      public static java.lang.String poisonousBerry
    • poisonousMushroom

      public static java.lang.String poisonousMushroom
  • Constructor Details

    • GameClient

      public GameClient()
  • Method Details

    • getPlayerByOnlineID

      public IsoPlayer getPlayerByOnlineID​(short short1)
    • init

      public void init()
    • startClient

      public void startClient()
    • Shutdown

      public void Shutdown()
    • update

      public void update()
    • smashWindow

      public void smashWindow​(IsoWindow window, int int1)
    • getCustomModData

      public static void getCustomModData()
    • requestPacketCounts

      public void requestPacketCounts()
    • getPacketCounts

      public KahluaTable getPacketCounts​(int int1)
    • IsClientPaused

      public static boolean IsClientPaused()
    • invMngRequestItem

      public static void invMngRequestItem​(long long1, java.lang.String string, IsoPlayer player)
    • invMngRequestRemoveItem

      public static void invMngRequestRemoveItem​(long long1, IsoPlayer player)
    • checksumServer

      public static void checksumServer()
    • sendAddXpFromPlayerStatsUI

      public void sendAddXpFromPlayerStatsUI​(IsoPlayer player, PerkFactory.Perk perk, int int1, boolean boolean1, boolean boolean2)
    • sendSyncXp

      public void sendSyncXp​(IsoPlayer player)
    • sendTransactionID

      public void sendTransactionID​(IsoPlayer player)
    • addDisconnectPacket

      public void addDisconnectPacket​(int int1)
    • connectionLost

      public void connectionLost()
    • SendCommandToServer

      public static void SendCommandToServer​(java.lang.String string)
    • sendServerPing

      public static void sendServerPing​(long long1)
    • GameLoadingRequestData

      public void GameLoadingRequestData()
    • getServerSpawnRegions

      public KahluaTable getServerSpawnRegions()
    • toggleSafety

      public static void toggleSafety​(IsoPlayer player)
    • sendHitCharacter

      public static boolean sendHitCharacter​(IsoGameCharacter gameCharacter, IsoMovingObject movingObject, HandWeapon handWeapon, float float1, boolean boolean1, float float2, boolean boolean2, boolean boolean3, boolean boolean4)
    • sendHitVehicle

      public static void sendHitVehicle​(IsoPlayer player, IsoGameCharacter gameCharacter, BaseVehicle baseVehicle, float float1, boolean boolean1, int int1, float float2, boolean boolean2)
    • sendZombieDeath

      public static void sendZombieDeath​(IsoZombie zombie)
    • sendPlayerDeath

      public 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 player, java.lang.String string)
    • sendKillZombie

      public static void sendKillZombie​(IsoZombie zombie)
    • sendAction

      public static void sendAction​(BaseAction baseAction, boolean boolean1)
    • sendEatBody

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

      public static void receiveEatBody​(java.nio.ByteBuffer byteBuffer, short short1)
    • sendThump

      public static void sendThump​(IsoGameCharacter gameCharacter, Thumpable thumpable)
    • receiveThump

      public static void receiveThump​(java.nio.ByteBuffer byteBuffer, short short1)
    • sendWorldSound

      public void sendWorldSound​(WorldSoundManager.WorldSound worldSound)
    • canSeePlayerStats

      public static boolean canSeePlayerStats()
    • canModifyPlayerStats

      public static boolean canModifyPlayerStats()
    • sendPersonalColor

      public void sendPersonalColor​(IsoPlayer player)
    • sendChangedPlayerStats

      public void sendChangedPlayerStats​(IsoPlayer player)
    • writePlayerConnectData

      public void writePlayerConnectData​(ByteBufferWriter byteBufferWriter, IsoPlayer player)
    • sendPlayerConnect

      public void sendPlayerConnect​(IsoPlayer player)
    • sendPlayerSave

      public void sendPlayerSave​(IsoPlayer player)
    • sendPlayer2

      public void sendPlayer2​(IsoPlayer player)
    • sendPlayer

      public void sendPlayer​(IsoPlayer player)
    • sendSteamProfileName

      public void sendSteamProfileName​(long long1)
    • heartBeat

      public void heartBeat()
    • getZombie

      public static IsoZombie getZombie​(short short1)
    • sendPlayerExtraInfo

      public static void sendPlayerExtraInfo​(IsoPlayer player)
    • setResetID

      public void setResetID​(int int1)
    • loadResetID

      public void loadResetID()
    • receivePlayerConnectWhileLoading

      public boolean receivePlayerConnectWhileLoading​(java.nio.ByteBuffer byteBuffer)
    • getPlayers

      public java.util.ArrayList getPlayers()
    • sendWeaponHit

      public void sendWeaponHit​(IsoPlayer player, HandWeapon handWeapon, IsoObject object)
    • SyncCustomLightSwitchSettings

      public static void SyncCustomLightSwitchSettings​(java.nio.ByteBuffer byteBuffer)
    • disconnect

      public void disconnect()
    • addIncoming

      public void addIncoming​(short short1, java.nio.ByteBuffer byteBuffer)
    • doDisconnect

      public void doDisconnect​(java.lang.String string)
    • removeZombieFromCache

      public void removeZombieFromCache​(IsoZombie zombie)
    • equip

      public void equip​(IsoPlayer player, int int1)
    • sendWorldMessage

      public void sendWorldMessage​(java.lang.String string)
    • doConnect

      public void doConnect​(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4, java.lang.String string5, java.lang.String string6)
    • doConnectCoop

      public void doConnectCoop​(java.lang.String string)
    • scoreboardUpdate

      public void scoreboardUpdate()
    • sendWorldSound

      public void sendWorldSound​(java.lang.Object object, int int1, int int2, int int3, int int4, int int5, boolean boolean1, float float1, float float2)
    • sendClientCommand

      public void sendClientCommand​(IsoPlayer player, java.lang.String string, java.lang.String string2, KahluaTable kahluaTable)
    • sendClientCommandV

      public void sendClientCommandV​(IsoPlayer player, java.lang.String string, java.lang.String string2, java.lang.Object[] objectArray)
    • sendClothing

      public void sendClothing​(IsoPlayer player, java.lang.String string, InventoryItem inventoryItem)
    • sendAttachedItem

      public void sendAttachedItem​(IsoPlayer player, java.lang.String string, InventoryItem inventoryItem)
    • sendVisual

      public void sendVisual​(IsoPlayer player)
    • sendCustomColor

      public void sendCustomColor​(IsoObject object)
    • sendBandage

      public void sendBandage​(int int1, int int2, boolean boolean1, float float1, boolean boolean2, java.lang.String string)
    • sendStitch

      public void sendStitch​(int int1, int int2, boolean boolean1, float float1)
    • sendWoundInfection

      public void sendWoundInfection​(int int1, int int2, boolean boolean1)
    • sendDisinfect

      public void sendDisinfect​(int int1, int int2, float float1)
    • sendSplint

      public void sendSplint​(int int1, int int2, boolean boolean1, float float1, java.lang.String string)
    • sendAdditionalPain

      public void sendAdditionalPain​(int int1, int int2, float float1)
    • sendRemoveGlass

      public void sendRemoveGlass​(int int1, int int2)
    • sendRemoveBullet

      public void sendRemoveBullet​(int int1, int int2, int int3)
    • sendCleanBurn

      public void sendCleanBurn​(int int1, int int2)
    • eatFood

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

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

      public void addToItemSendBuffer​(IsoObject object, ItemContainer itemContainer, InventoryItem inventoryItem)
    • addToItemRemoveSendBuffer

      public void addToItemRemoveSendBuffer​(IsoObject object, ItemContainer itemContainer, InventoryItem inventoryItem)
    • sendAddedRemovedItems

      public void sendAddedRemovedItems​(boolean boolean1)
    • checkAddedRemovedItems

      public void checkAddedRemovedItems​(IsoObject object)
    • sendItemStats

      public void sendItemStats​(InventoryItem inventoryItem)
    • PlayWorldSound

      public void PlayWorldSound​(java.lang.String string, int int1, int int2, byte byte1)
    • PlaySound

      public void PlaySound​(java.lang.String string, boolean boolean1, IsoMovingObject movingObject)
    • StopSound

      public void StopSound​(IsoMovingObject movingObject, java.lang.String string, boolean boolean1)
    • startLocalServer

      public void startLocalServer() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • sendPing

      public static void sendPing()
    • registerZone

      public static void registerZone​(IsoMetaGrid.Zone zone, boolean boolean1)
    • sendSafehouse

      public static void sendSafehouse​(SafeHouse safeHouse, boolean boolean1)
    • getPlayerFromUsername

      public IsoPlayer getPlayerFromUsername​(java.lang.String string)
    • destroy

      public static void destroy​(IsoObject object)
    • sendTeleport

      public static void sendTeleport​(IsoPlayer player, float float1, float float2, float float3)
    • sendStopFire

      public static void sendStopFire​(IsoGridSquare square)
    • sendStopFire

      public static void sendStopFire​(IsoGameCharacter gameCharacter)
    • sendCataplasm

      public void sendCataplasm​(int int1, int int2, float float1, float float2, float float3)
    • receiveRadioDeviceDataState

      public static void receiveRadioDeviceDataState​(java.nio.ByteBuffer byteBuffer)
    • sendRadioServerDataRequest

      public static void sendRadioServerDataRequest()
    • sendIsoWaveSignal

      public static void sendIsoWaveSignal​(int int1, int int2, int int3, java.lang.String string, java.lang.String string2, float float1, float float2, float float3, int int4, boolean boolean1)
    • sendPlayerListensChannel

      public static void sendPlayerListensChannel​(int int1, boolean boolean1, boolean boolean2)
    • sendFurnaceChange

      public static void sendFurnaceChange​(BSFurnace bSFurnace)
    • sendCompost

      public static void sendCompost​(IsoCompost compost)
    • requestUserlog

      public void requestUserlog​(java.lang.String string)
    • addUserlog

      public void addUserlog​(java.lang.String string, java.lang.String string2, java.lang.String string3)
    • removeUserlog

      public void removeUserlog​(java.lang.String string, java.lang.String string2, java.lang.String string3)
    • addWarningPoint

      public void addWarningPoint​(java.lang.String string, java.lang.String string2, int int1)
    • wakeUpPlayer

      public void wakeUpPlayer​(IsoPlayer player)
    • getDBSchema

      public void getDBSchema()
    • getTableResult

      public void getTableResult​(java.lang.String string, int int1)
    • executeQuery

      public void executeQuery​(java.lang.String string, KahluaTable kahluaTable)
    • getConnectedPlayers

      public java.util.ArrayList getConnectedPlayers()
    • sendNonPvpZone

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

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

      public static void sendFactionInvite​(Faction faction, IsoPlayer player, java.lang.String string)
    • acceptFactionInvite

      public static void acceptFactionInvite​(Faction faction, java.lang.String string)
    • addTicket

      public static void addTicket​(java.lang.String string, java.lang.String string2, int int1)
    • getTickets

      public static void getTickets​(java.lang.String string)
    • removeTicket

      public static void removeTicket​(int int1)
    • sendItemListNet

      public static boolean sendItemListNet​(IsoPlayer player, java.util.ArrayList arrayList, IsoPlayer player2, java.lang.String string, java.lang.String string2)
    • requestTrading

      public void requestTrading​(IsoPlayer player, IsoPlayer player2)
    • acceptTrading

      public void acceptTrading​(IsoPlayer player, IsoPlayer player2, boolean boolean1)
    • tradingUISendAddItem

      public void tradingUISendAddItem​(IsoPlayer player, IsoPlayer player2, InventoryItem inventoryItem)
    • tradingUISendRemoveItem

      public void tradingUISendRemoveItem​(IsoPlayer player, IsoPlayer player2, int int1)
    • tradingUISendUpdateState

      public void tradingUISendUpdateState​(IsoPlayer player, IsoPlayer player2, int int1)
    • sendBuildingStashToDo

      public static void sendBuildingStashToDo​(java.lang.String string)
    • setServerStatisticEnable

      public static void setServerStatisticEnable​(boolean boolean1)
    • getServerStatisticEnable

      public static boolean getServerStatisticEnable()
    • sendRequestInventory

      public static void sendRequestInventory​(IsoPlayer player)
    • sendGetItemInvMng

      public static void sendGetItemInvMng​(long long1)
    • sendIsoRegionDataRequest

      public static void sendIsoRegionDataRequest()
    • sendSandboxOptionsToServer

      public void sendSandboxOptionsToServer​(SandboxOptions sandboxOptions)
    • sendZombieHelmetFall

      public static void sendZombieHelmetFall​(IsoPlayer player, IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
    • sendPerks

      public static void sendPerks​(IsoPlayer player)
    • sendWeight

      public static void sendWeight​(IsoPlayer player)
    • sendSafehouseInvite

      public static void sendSafehouseInvite​(SafeHouse safeHouse, IsoPlayer player, java.lang.String string)
    • acceptSafehouseInvite

      public static void acceptSafehouseInvite​(SafeHouse safeHouse, java.lang.String string)
    • sendEquippedRadioFreq

      public static void sendEquippedRadioFreq​(IsoPlayer player)