Package zombie.network
Class GameClient
java.lang.Object
zombie.network.GameClient
public class GameClient
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
accessLevel
static boolean
allChatMuted
static boolean
askPing
static boolean
bClient
boolean
bConnected
static boolean
bCoopInvite
static boolean
bFastForward
static boolean
bIngame
boolean
bPlayerConnectSent
static java.lang.String
checksum
static boolean
checksumValid
static UdpConnection
connection
static int
count
int
DEBUG_PING
static int
DEFAULT_PORT
ErosionConfig
erosionConfig
static java.lang.String
GameMap
byte
ID
static java.util.HashMap
IDToPlayerMap
static gnu.trove.map.hash.TShortObjectHashMap
IDToZombieMap
static GameClient
instance
static java.lang.String
ip
static ClientServerMap[]
loadedCells
static java.lang.String
localIP
IsoObjectSyncRequests
objectSyncReq
static java.lang.String
password
int
ping
static java.util.List
pingsList
static java.lang.String
poisonousBerry
static java.lang.String
poisonousMushroom
static int
port
static java.util.Map
positions
UpdateLimit
sendZombieRequestsTimer
UpdateLimit
sendZombieTimer
java.util.ArrayList
ServerMods
static java.lang.String
serverPassword
static float
ServerPredictedAhead
KahluaTable
ServerSpawnRegions
static java.util.Calendar
startAuth
float
timeSinceKeepAlive
int
TimeSinceLastUpdate
UdpEngine
udpEngine
static java.lang.String
username
ObjectsSyncRequests
worldObjectsSyncReq
-
Constructor Summary
Constructors Constructor Description GameClient()
-
Method Summary
Modifier and Type Method Description static void
acceptFactionInvite(Faction faction, java.lang.String string)
static void
acceptSafehouseInvite(SafeHouse safeHouse, java.lang.String string)
void
acceptTrading(IsoPlayer player, IsoPlayer player2, boolean boolean1)
void
addDisconnectPacket(int int1)
void
addIncoming(short short1, java.nio.ByteBuffer byteBuffer)
static void
addTicket(java.lang.String string, java.lang.String string2, int int1)
void
addToItemRemoveSendBuffer(IsoObject object, ItemContainer itemContainer, InventoryItem inventoryItem)
void
addToItemSendBuffer(IsoObject object, ItemContainer itemContainer, InventoryItem inventoryItem)
void
addUserlog(java.lang.String string, java.lang.String string2, java.lang.String string3)
void
addWarningPoint(java.lang.String string, java.lang.String string2, int int1)
static boolean
canModifyPlayerStats()
static boolean
canSeePlayerStats()
void
checkAddedRemovedItems(IsoObject object)
static void
checksumServer()
void
connectionLost()
static void
destroy(IsoObject object)
void
disconnect()
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)
void
doConnectCoop(java.lang.String string)
void
doDisconnect(java.lang.String string)
void
drink(IsoPlayer player, float float1)
void
eatFood(IsoPlayer player, Food food, float float1)
void
equip(IsoPlayer player, int int1)
void
executeQuery(java.lang.String string, KahluaTable kahluaTable)
void
GameLoadingRequestData()
java.util.ArrayList
getConnectedPlayers()
static void
getCustomModData()
void
getDBSchema()
KahluaTable
getPacketCounts(int int1)
IsoPlayer
getPlayerByOnlineID(short short1)
IsoPlayer
getPlayerFromUsername(java.lang.String string)
java.util.ArrayList
getPlayers()
KahluaTable
getServerSpawnRegions()
static boolean
getServerStatisticEnable()
void
getTableResult(java.lang.String string, int int1)
static void
getTickets(java.lang.String string)
static IsoZombie
getZombie(short short1)
void
heartBeat()
void
init()
static void
invMngRequestItem(long long1, java.lang.String string, IsoPlayer player)
static void
invMngRequestRemoveItem(long long1, IsoPlayer player)
static boolean
IsClientPaused()
void
loadResetID()
void
PlaySound(java.lang.String string, boolean boolean1, IsoMovingObject movingObject)
void
PlayWorldSound(java.lang.String string, int int1, int int2, byte byte1)
static void
receiveEatBody(java.nio.ByteBuffer byteBuffer, short short1)
boolean
receivePlayerConnectWhileLoading(java.nio.ByteBuffer byteBuffer)
static void
receiveRadioDeviceDataState(java.nio.ByteBuffer byteBuffer)
static void
receiveThump(java.nio.ByteBuffer byteBuffer, short short1)
static void
registerZone(IsoMetaGrid.Zone zone, boolean boolean1)
static void
removeTicket(int int1)
void
removeUserlog(java.lang.String string, java.lang.String string2, java.lang.String string3)
void
removeZombieFromCache(IsoZombie zombie)
void
requestPacketCounts()
void
requestTrading(IsoPlayer player, IsoPlayer player2)
void
requestUserlog(java.lang.String string)
void
scoreboardUpdate()
static void
sendAction(BaseAction baseAction, boolean boolean1)
void
sendAddedRemovedItems(boolean boolean1)
void
sendAdditionalPain(int int1, int int2, float float1)
void
sendAddXpFromPlayerStatsUI(IsoPlayer player, PerkFactory.Perk perk, int int1, boolean boolean1, boolean boolean2)
void
sendAttachedItem(IsoPlayer player, java.lang.String string, InventoryItem inventoryItem)
void
sendBandage(int int1, int int2, boolean boolean1, float float1, boolean boolean2, java.lang.String string)
static void
sendBuildingStashToDo(java.lang.String string)
void
sendCataplasm(int int1, int int2, float float1, float float2, float float3)
void
sendChangedPlayerStats(IsoPlayer player)
void
sendCleanBurn(int int1, int int2)
void
sendClientCommand(IsoPlayer player, java.lang.String string, java.lang.String string2, KahluaTable kahluaTable)
void
sendClientCommandV(IsoPlayer player, java.lang.String string, java.lang.String string2, java.lang.Object[] objectArray)
void
sendClothing(IsoPlayer player, java.lang.String string, InventoryItem inventoryItem)
static void
SendCommandToServer(java.lang.String string)
static void
sendCompost(IsoCompost compost)
void
sendCustomColor(IsoObject object)
void
sendDisinfect(int int1, int int2, float float1)
static void
sendEatBody(IsoZombie zombie, IsoMovingObject movingObject)
static void
sendEquippedRadioFreq(IsoPlayer player)
static void
sendEvent(IsoPlayer player, java.lang.String string)
static void
sendFaction(Faction faction, boolean boolean1)
static void
sendFactionInvite(Faction faction, IsoPlayer player, java.lang.String string)
static void
sendFurnaceChange(BSFurnace bSFurnace)
static void
sendGetItemInvMng(long long1)
static boolean
sendHitCharacter(IsoGameCharacter gameCharacter, IsoMovingObject movingObject, HandWeapon handWeapon, float float1, boolean boolean1, float float2, boolean boolean2, boolean boolean3, boolean boolean4)
static void
sendHitVehicle(IsoPlayer player, IsoGameCharacter gameCharacter, BaseVehicle baseVehicle, float float1, boolean boolean1, int int1, float float2, boolean boolean2)
static void
sendIsoRegionDataRequest()
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)
static boolean
sendItemListNet(IsoPlayer player, java.util.ArrayList arrayList, IsoPlayer player2, java.lang.String string, java.lang.String string2)
void
sendItemStats(InventoryItem inventoryItem)
static void
sendKillZombie(IsoZombie zombie)
static void
sendNonPvpZone(NonPvpZone nonPvpZone, boolean boolean1)
static void
sendPerks(IsoPlayer player)
void
sendPersonalColor(IsoPlayer player)
static void
sendPing()
void
sendPlayer(IsoPlayer player)
void
sendPlayer2(IsoPlayer player)
void
sendPlayerConnect(IsoPlayer player)
static void
sendPlayerDamage(IsoPlayer player)
void
sendPlayerDeath(IsoPlayer player)
static void
sendPlayerExtraInfo(IsoPlayer player)
static void
sendPlayerInjuries(IsoPlayer player)
static void
sendPlayerListensChannel(int int1, boolean boolean1, boolean boolean2)
void
sendPlayerSave(IsoPlayer player)
static void
sendRadioServerDataRequest()
void
sendRemoveBullet(int int1, int int2, int int3)
static void
sendRemoveCorpseFromMap(IsoDeadBody deadBody)
void
sendRemoveGlass(int int1, int int2)
static void
sendRequestInventory(IsoPlayer player)
static void
sendSafehouse(SafeHouse safeHouse, boolean boolean1)
static void
sendSafehouseInvite(SafeHouse safeHouse, IsoPlayer player, java.lang.String string)
void
sendSandboxOptionsToServer(SandboxOptions sandboxOptions)
static void
sendServerPing(long long1)
void
sendSplint(int int1, int int2, boolean boolean1, float float1, java.lang.String string)
void
sendSteamProfileName(long long1)
void
sendStitch(int int1, int int2, boolean boolean1, float float1)
static void
sendStopFire(IsoGameCharacter gameCharacter)
static void
sendStopFire(IsoGridSquare square)
void
sendSyncXp(IsoPlayer player)
static void
sendTeleport(IsoPlayer player, float float1, float float2, float float3)
static void
sendThump(IsoGameCharacter gameCharacter, Thumpable thumpable)
void
sendTransactionID(IsoPlayer player)
void
sendVisual(IsoPlayer player)
void
sendWeaponHit(IsoPlayer player, HandWeapon handWeapon, IsoObject object)
static void
sendWeight(IsoPlayer player)
void
sendWorldMessage(java.lang.String string)
void
sendWorldSound(java.lang.Object object, int int1, int int2, int int3, int int4, int int5, boolean boolean1, float float1, float float2)
void
sendWorldSound(WorldSoundManager.WorldSound worldSound)
void
sendWoundInfection(int int1, int int2, boolean boolean1)
static void
sendZombieDeath(IsoZombie zombie)
static void
sendZombieHelmetFall(IsoPlayer player, IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
void
setResetID(int int1)
static void
setServerStatisticEnable(boolean boolean1)
void
Shutdown()
void
smashWindow(IsoWindow window, int int1)
void
startClient()
void
startLocalServer()
void
StopSound(IsoMovingObject movingObject, java.lang.String string, boolean boolean1)
static void
SyncCustomLightSwitchSettings(java.nio.ByteBuffer byteBuffer)
static void
toggleSafety(IsoPlayer player)
void
tradingUISendAddItem(IsoPlayer player, IsoPlayer player2, InventoryItem inventoryItem)
void
tradingUISendRemoveItem(IsoPlayer player, IsoPlayer player2, int int1)
void
tradingUISendUpdateState(IsoPlayer player, IsoPlayer player2, int int1)
void
update()
void
wakeUpPlayer(IsoPlayer player)
void
writePlayerConnectData(ByteBufferWriter byteBufferWriter, IsoPlayer player)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
- Constant Field Values
-
bClient
public static boolean bClient -
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
-
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
-
DEBUG_PING
public int DEBUG_PING -
objectSyncReq
-
worldObjectsSyncReq
-
bCoopInvite
public static boolean bCoopInvite -
sendZombieTimer
-
sendZombieRequestsTimer
-
positions
public static java.util.Map positions -
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
-
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
-
init
public void init() -
startClient
public void startClient() -
Shutdown
public void Shutdown() -
update
public void update() -
smashWindow
-
getCustomModData
public static void getCustomModData() -
requestPacketCounts
public void requestPacketCounts() -
getPacketCounts
-
IsClientPaused
public static boolean IsClientPaused() -
invMngRequestItem
-
invMngRequestRemoveItem
-
checksumServer
public static void checksumServer() -
sendAddXpFromPlayerStatsUI
public void sendAddXpFromPlayerStatsUI(IsoPlayer player, PerkFactory.Perk perk, int int1, boolean boolean1, boolean boolean2) -
sendSyncXp
-
sendTransactionID
-
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
-
toggleSafety
-
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
-
sendPlayerDeath
-
sendPlayerDamage
-
sendPlayerInjuries
-
sendRemoveCorpseFromMap
-
sendEvent
-
sendKillZombie
-
sendAction
-
sendEatBody
-
receiveEatBody
public static void receiveEatBody(java.nio.ByteBuffer byteBuffer, short short1) -
sendThump
-
receiveThump
public static void receiveThump(java.nio.ByteBuffer byteBuffer, short short1) -
sendWorldSound
-
canSeePlayerStats
public static boolean canSeePlayerStats() -
canModifyPlayerStats
public static boolean canModifyPlayerStats() -
sendPersonalColor
-
sendChangedPlayerStats
-
writePlayerConnectData
-
sendPlayerConnect
-
sendPlayerSave
-
sendPlayer2
-
sendPlayer
-
sendSteamProfileName
public void sendSteamProfileName(long long1) -
heartBeat
public void heartBeat() -
getZombie
-
sendPlayerExtraInfo
-
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
-
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
-
equip
-
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
-
sendAttachedItem
public void sendAttachedItem(IsoPlayer player, java.lang.String string, InventoryItem inventoryItem) -
sendVisual
-
sendCustomColor
-
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
-
drink
-
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
-
sendItemStats
-
PlayWorldSound
public void PlayWorldSound(java.lang.String string, int int1, int int2, byte byte1) -
PlaySound
-
StopSound
-
startLocalServer
public void startLocalServer() throws java.lang.Exception- Throws:
java.lang.Exception
-
sendPing
public static void sendPing() -
registerZone
-
sendSafehouse
-
getPlayerFromUsername
-
destroy
-
sendTeleport
-
sendStopFire
-
sendStopFire
-
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
-
sendCompost
-
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
-
getDBSchema
public void getDBSchema() -
getTableResult
public void getTableResult(java.lang.String string, int int1) -
executeQuery
-
getConnectedPlayers
public java.util.ArrayList getConnectedPlayers() -
sendNonPvpZone
-
sendFaction
-
sendFactionInvite
-
acceptFactionInvite
-
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
-
requestTrading
-
acceptTrading
-
tradingUISendAddItem
-
tradingUISendRemoveItem
-
tradingUISendUpdateState
-
sendBuildingStashToDo
public static void sendBuildingStashToDo(java.lang.String string) -
setServerStatisticEnable
public static void setServerStatisticEnable(boolean boolean1) -
getServerStatisticEnable
public static boolean getServerStatisticEnable() -
sendRequestInventory
-
sendGetItemInvMng
public static void sendGetItemInvMng(long long1) -
sendIsoRegionDataRequest
public static void sendIsoRegionDataRequest() -
sendSandboxOptionsToServer
-
sendZombieHelmetFall
public static void sendZombieHelmetFall(IsoPlayer player, IsoGameCharacter gameCharacter, InventoryItem inventoryItem) -
sendPerks
-
sendWeight
-
sendSafehouseInvite
-
acceptSafehouseInvite
-
sendEquippedRadioFreq
-