Class GameClient

java.lang.Object
zombie.network.GameClient

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

    • instance

      public static 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
    • PlayerToBody

      public java.util.HashMap PlayerToBody
    • 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
    • ServerSpawnRegions

      public KahluaTable ServerSpawnRegions
    • RecentlyDied

      public java.util.ArrayList RecentlyDied
    • bConnected

      public boolean bConnected
    • TimeSinceLastUpdate

      public int TimeSinceLastUpdate
    • ping

      public int ping
    • ServerPredictedAhead

      public static float ServerPredictedAhead
    • IDToPlayerMap

      public static java.util.HashMap IDToPlayerMap
    • bIngame

      public static boolean bIngame
    • askPing

      public static boolean askPing
    • ServerMods

      public 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
    • idMapDirty

      public boolean idMapDirty
  • Constructor Details

    • GameClient

      public GameClient()
  • Method Details

    • getPlayerByOnlineID

      public IsoPlayer getPlayerByOnlineID​(int int1)
    • 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.Perks perks, int int1, boolean boolean1, boolean boolean2)
    • addLevelUpPoint

      public void addLevelUpPoint​(IsoPlayer player)
    • 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)
    • GameLoadingRequestData

      public void GameLoadingRequestData()
    • getServerSpawnRegions

      public KahluaTable getServerSpawnRegions()
    • toggleSafety

      public static void toggleSafety​(IsoPlayer player)
    • 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)
    • sendPlayer

      public void sendPlayer​(IsoPlayer player)
    • sendSteamProfileName

      public void sendSteamProfileName​(long long1)
    • heartBeat

      public void heartBeat()
    • getZombie

      public static IsoZombie getZombie​(short short1)
    • receiveZombieInfo

      public void receiveZombieInfo​(java.nio.ByteBuffer byteBuffer)
    • sendPlayerExtraInfo

      public static void sendPlayerExtraInfo​(IsoPlayer player)
    • receivePlayerInfo

      public void receivePlayerInfo​(java.nio.ByteBuffer byteBuffer)
    • receiveConnectionDetails

      public void receiveConnectionDetails​(java.nio.ByteBuffer byteBuffer)
    • setResetID

      public void setResetID​(int int1)
    • loadResetID

      public void loadResetID()
    • receivePlayerConnect

      public void receivePlayerConnect​(java.nio.ByteBuffer byteBuffer)
    • receivePlayerConnectWhileLoading

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

      public java.util.ArrayList getPlayers()
    • createZombie

      public void createZombie​(java.nio.ByteBuffer byteBuffer)
    • loadingChunk

      public void loadingChunk​(int int1, int int2)
    • chunkDetails

      public void chunkDetails​(ByteBufferReader byteBufferReader)
    • doneLogin

      public void doneLogin()
    • sendWeaponHit

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

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

      public void SyncIsoObjectReq​(java.nio.ByteBuffer byteBuffer)
    • SyncWorldObjectsReq

      public void SyncWorldObjectsReq​(java.nio.ByteBuffer byteBuffer)
    • SyncObjectsReq

      public void SyncObjectsReq​(java.nio.ByteBuffer byteBuffer)
    • SyncIsoObject

      public void SyncIsoObject​(java.nio.ByteBuffer byteBuffer)
    • SyncAlarmClock

      public static void SyncAlarmClock​(java.nio.ByteBuffer byteBuffer)
    • AddItemToMap

      public void AddItemToMap​(java.nio.ByteBuffer byteBuffer)
    • playerTimeout

      public void playerTimeout​(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, InventoryItem inventoryItem)
    • sendChat

      public void sendChat​(java.lang.String string, byte byte1)
    • 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​(IsoObject 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, int int1, InventoryItem inventoryItem)
    • 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)
    • sendDeath

      public void sendDeath​(IsoPlayer player)
    • sendOnBeaten

      public void sendOnBeaten​(IsoPlayer player, float float1, float float2, float float3)
    • 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, boolean boolean1, int int1, int int2, int int3)
    • 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)
    • removeSpecialObjectFromSquare

      public static void removeSpecialObjectFromSquare​(IsoObject object)
    • 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, ChatMessage chatMessage, java.lang.String string, 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)
    • 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)