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
boolean
idMapDirty
static java.util.HashMap
IDToPlayerMap
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
java.util.HashMap
PlayerToBody
static java.lang.String
poisonousBerry
static java.lang.String
poisonousMushroom
static int
port
java.util.ArrayList
RecentlyDied
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)
void
acceptTrading(IsoPlayer player, IsoPlayer player2, boolean boolean1)
void
addDisconnectPacket(int int1)
void
addIncoming(short short1, java.nio.ByteBuffer byteBuffer)
void
AddItemToMap(java.nio.ByteBuffer byteBuffer)
void
addLevelUpPoint(IsoPlayer player)
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
chunkDetails(ByteBufferReader byteBufferReader)
void
connectionLost()
void
createZombie(java.nio.ByteBuffer byteBuffer)
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
doneLogin()
void
drink(IsoPlayer player, float float1)
void
eatFood(IsoPlayer player, Food food, float float1)
void
equip(IsoPlayer player, int int1, InventoryItem inventoryItem)
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(int int1)
IsoPlayer
getPlayerFromUsername(java.lang.String string)
java.util.ArrayList
getPlayers()
KahluaTable
getServerSpawnRegions()
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
loadingChunk(int int1, int int2)
void
loadResetID()
void
playerTimeout(java.nio.ByteBuffer byteBuffer)
void
PlayWorldSound(java.lang.String string, boolean boolean1, int int1, int int2, int int3)
void
receiveConnectionDetails(java.nio.ByteBuffer byteBuffer)
void
receivePlayerConnect(java.nio.ByteBuffer byteBuffer)
boolean
receivePlayerConnectWhileLoading(java.nio.ByteBuffer byteBuffer)
void
receivePlayerInfo(java.nio.ByteBuffer byteBuffer)
static void
receiveRadioDeviceDataState(java.nio.ByteBuffer byteBuffer)
void
receiveZombieInfo(java.nio.ByteBuffer byteBuffer)
static void
registerZone(IsoMetaGrid.Zone zone, boolean boolean1)
static void
removeSpecialObjectFromSquare(IsoObject object)
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()
void
sendAddedRemovedItems(boolean boolean1)
void
sendAdditionalPain(int int1, int int2, float float1)
void
sendAddXpFromPlayerStatsUI(IsoPlayer player, PerkFactory.Perks perks, int int1, boolean boolean1, boolean boolean2)
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
sendChat(java.lang.String string, byte byte1)
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, int int1, InventoryItem inventoryItem)
static void
SendCommandToServer(java.lang.String string)
static void
sendCompost(IsoCompost compost)
void
sendCustomColor(IsoObject object)
void
sendDeath(IsoPlayer player)
void
sendDisinfect(int int1, int int2, float float1)
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 void
sendIsoRegionDataRequest()
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)
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
sendNonPvpZone(NonPvpZone nonPvpZone, boolean boolean1)
void
sendOnBeaten(IsoPlayer player, float float1, float float2, float float3)
void
sendPersonalColor(IsoPlayer player)
static void
sendPing()
void
sendPlayer(IsoPlayer player)
void
sendPlayerConnect(IsoPlayer player)
static void
sendPlayerExtraInfo(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)
void
sendRemoveGlass(int int1, int int2)
static void
sendRequestInventory(IsoPlayer player)
static void
sendSafehouse(SafeHouse safeHouse, boolean boolean1)
void
sendSandboxOptionsToServer(SandboxOptions sandboxOptions)
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)
void
sendTransactionID(IsoPlayer player)
void
sendWeaponHit(IsoPlayer player, HandWeapon handWeapon, IsoObject object)
void
sendWorldMessage(java.lang.String string)
void
sendWorldSound(IsoObject object, int int1, int int2, int int3, int int4, int int5, boolean boolean1, float float1, float float2)
void
sendWoundInfection(int int1, int int2, boolean boolean1)
void
setResetID(int int1)
void
Shutdown()
void
smashWindow(IsoWindow window, int int1)
void
startClient()
void
startLocalServer()
static void
SyncAlarmClock(java.nio.ByteBuffer byteBuffer)
static void
SyncCustomLightSwitchSettings(java.nio.ByteBuffer byteBuffer)
void
SyncIsoObject(java.nio.ByteBuffer byteBuffer)
void
SyncIsoObjectReq(java.nio.ByteBuffer byteBuffer)
void
SyncObjectsReq(java.nio.ByteBuffer byteBuffer)
void
SyncWorldObjectsReq(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 -
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
-
DEBUG_PING
public int DEBUG_PING -
objectSyncReq
-
worldObjectsSyncReq
-
bCoopInvite
public static boolean bCoopInvite -
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
-
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
-
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.Perks perks, int int1, boolean boolean1, boolean boolean2) -
addLevelUpPoint
-
sendSyncXp
-
sendTransactionID
-
addDisconnectPacket
public void addDisconnectPacket(int int1) -
connectionLost
public void connectionLost() -
SendCommandToServer
public static void SendCommandToServer(java.lang.String string) -
GameLoadingRequestData
public void GameLoadingRequestData() -
getServerSpawnRegions
-
toggleSafety
-
canSeePlayerStats
public static boolean canSeePlayerStats() -
canModifyPlayerStats
public static boolean canModifyPlayerStats() -
sendPersonalColor
-
sendChangedPlayerStats
-
writePlayerConnectData
-
sendPlayerConnect
-
sendPlayerSave
-
sendPlayer
-
sendSteamProfileName
public void sendSteamProfileName(long long1) -
heartBeat
public void heartBeat() -
getZombie
-
receiveZombieInfo
public void receiveZombieInfo(java.nio.ByteBuffer byteBuffer) -
sendPlayerExtraInfo
-
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
-
doneLogin
public void doneLogin() -
sendWeaponHit
-
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
-
equip
-
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
-
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
-
sendDeath
-
sendOnBeaten
-
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, 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
-
removeSpecialObjectFromSquare
-
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, 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
-
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) -
sendRequestInventory
-
sendGetItemInvMng
public static void sendGetItemInvMng(long long1) -
sendIsoRegionDataRequest
public static void sendIsoRegionDataRequest() -
sendSandboxOptionsToServer
-