Class GameClient
java.lang.Object
zombie.network.GameClient
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanstatic booleanstatic intstatic booleanbooleanstatic booleanstatic booleanstatic booleanbooleanstatic Stringstatic booleanstatic UdpConnectionstatic intintstatic final intstatic Stringstatic Stringbytebooleanstatic final gnu.trove.map.hash.TShortObjectHashMap<IsoZombie> static final GameClientstatic Stringstatic final ClientServerMap[]static Stringstatic Stringintstatic Stringstatic Stringstatic intstatic booleanfinal UpdateLimitfinal UpdateLimitstatic final intstatic final intstatic Stringstatic Stringstatic floatstatic Calendarstatic longfloatintstatic Stringstatic boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidacceptFactionInvite(Faction faction, String host) voidacceptTrading(IsoPlayer you, IsoPlayer other, boolean accept) voidaddDisconnectPacket(int packet) voidaddIncoming(short id, ByteBuffer bb) voidaddToItemRemoveSendBuffer(IsoObject parent, ItemContainer container, InventoryItem item) voidaddToItemSendBuffer(IsoObject parent, ItemContainer container, InventoryItem item) voidaddUserlog(String user, String type, String text) voidaddWarningPoint(String user, String reason, int amount) booleanstatic booleanvoidcheckAddedRemovedItems(IsoObject aboutToRemove) voidvoiddelayPacket(int int1, int int2, int var3) static voidvoiddisconnect(boolean boolean0) voiddoConnect(String string0, String string1, String string2, String string3, String string4, String string5, String string6, boolean boolean0, int int0) voiddoConnect(String string0, String string1, String string2, String string3, String string4, String string5, String string6, boolean boolean0, int int0, String string7) voiddoConnectCoop(String serverSteamID) voiddoDisconnect(String string) voidvoidvoidstatic voidstatic voidgetGoogleAuthenticatorBarCode(String string1, String string2, String string0) getPlayerByOnlineID(short id) getPlayerFromUsername(String _username) static booleanstatic IsoZombiegetZombie(short id) voidvoidinit()static voidinvMngRequestItem(int int0, String string, short short0, String var3) static voidinvMngRequestRemoveItem(int int0, short short0, String var2) static booleanvoidvoidPlaySound(String name, boolean loop, IsoMovingObject object) voidPlayWorldSound(String name, int x, int y, byte z) static voidreceiveAddAlarm(ByteBuffer byteBuffer, short var1) static voidreceiveAddAmbient(ByteBuffer byteBuffer, short var1) static voidreceiveAddBrokenGlass(ByteBuffer byteBuffer, short var1) static voidreceiveAddChatTab(ByteBuffer byteBuffer, short var1) static voidreceiveBigWaterSplash(ByteBuffer byteBuffer, short var1) static voidreceiveBloodSplatter(ByteBuffer byteBuffer, short var1) static voidreceiveChangePlayerStats(ByteBuffer byteBuffer, short var1) static voidreceiveChangeTextColor(ByteBuffer byteBuffer, short var1) static voidreceiveChatMessageToPlayer(ByteBuffer byteBuffer, short var1) static voidreceiveChunkObjectState(ByteBuffer byteBuffer, short var1) static voidreceiveClimateManagerPacket(ByteBuffer byteBuffer, short var1) static voidreceiveEatBody(ByteBuffer bb, short packetType) static voidreceiveFishingData(ByteBuffer byteBuffer, short var1) static voidreceiveInitPlayerChat(ByteBuffer byteBuffer, short var1) static voidreceiveInvMngGetItem(ByteBuffer byteBuffer, short var1) static voidreceiveInvMngRemoveItem(ByteBuffer byteBuffer, short var1) static voidreceiveInvMngReqItem(ByteBuffer byteBuffer, short var1) static voidreceiveIsoRegionServerPacket(ByteBuffer byteBuffer, short var1) static voidreceivePingFromClient(ByteBuffer byteBuffer, short var1) static voidreceivePlayerConnectedToChat(ByteBuffer var0, short var1) static voidreceivePlayerJoinChat(ByteBuffer byteBuffer, short var1) static voidreceivePlayerLeaveChat(ByteBuffer byteBuffer, short var1) static voidreceivePlayerNotFound(ByteBuffer byteBuffer, short var1) static voidreceivePlayerTimeout(short playerID) static voidreceivePlaySoundEveryPlayer(ByteBuffer byteBuffer, short var1) static voidreceiveRadioDeviceDataState(ByteBuffer bb, short packetType) static voidreceiveRadioPostSilence(ByteBuffer bb, short packetType) static voidreceiveRadioServerData(ByteBuffer bb, short packetType) static voidreceiveRemoveChatTab(ByteBuffer byteBuffer, short var1) static voidreceiveSandboxOptions(ByteBuffer byteBuffer, short var1) static voidreceiveSendCustomColor(ByteBuffer byteBuffer, short var1) static voidreceiveSendItemListNet(ByteBuffer byteBuffer, short var1) static voidreceiveSpawnRegion(ByteBuffer byteBuffer, short var1) static voidreceiveStatistic(ByteBuffer byteBuffer, short var1) static voidreceiveStatisticRequest(ByteBuffer byteBuffer, short var1) static voidreceiveStopRain(ByteBuffer var0, short var1) static voidreceiveSyncDoorKey(ByteBuffer byteBuffer, short var1) static voidreceiveSyncEquippedRadioFreq(ByteBuffer byteBuffer, short var1) static voidreceiveSyncFaction(ByteBuffer byteBuffer, short var1) static voidreceiveSyncIsoObject(ByteBuffer byteBuffer, short var1) static voidreceiveSyncPerks(ByteBuffer byteBuffer, short var1) static voidreceiveSyncRadioData(ByteBuffer bb, short packetType) static voidreceiveSyncWeight(ByteBuffer byteBuffer, short var1) static voidreceiveUpdateItemSprite(ByteBuffer byteBuffer, short var1) static voidreceiveVehicles(ByteBuffer byteBuffer, short var1) static voidreceiveWeather(ByteBuffer byteBuffer, short var1) static voidreceiveWorldMap(ByteBuffer byteBuffer, short var1) static voidreceiveWorldMapPlayerPosition(ByteBuffer byteBuffer, short var1) static voidreceiveZombieSound(ByteBuffer byteBuffer, short var1) static voidrememberPlayerPosition(IsoPlayer player, float float0, float float1) voidremoveBrokenGlass(IsoWindow window) voidremoveUserlog(String user, String type, String text) voidvoidrequestTrading(IsoPlayer you, IsoPlayer other) voidrequestUserlog(String user) voidvoidvoidsendAddedRemovedItems(boolean force) voidsendAddXp(IsoPlayer player, PerkFactory.Perk perk, float float0, boolean boolean0) static voidsendAnimalHitAnimal(IsoGameCharacter character, IsoMovingObject movingObject, float float0, boolean boolean0) static voidsendAnimalHitPlayer(IsoGameCharacter character, IsoMovingObject movingObject, float float0, boolean boolean0) static voidsendAnimalHitThumpable(IsoGameCharacter character) voidsendAttachedItem(IsoGameCharacter character, String string, InventoryItem item) static voidsendBigWaterSplash(int int0, int int1, float float0, float float1) voidsendChangedPlayerStats(IsoPlayer otherPlayer) static voidsendChangeSafety(Safety safety) voidsendClientCommand(IsoPlayer player, String module, String command, KahluaTable args) voidsendClientCommandV(IsoPlayer player, String module, String command, Object... objects) static voidSendCommandToServer(String command) static voidsendCompost(IsoCompost isoCompost) static voidsendCreatePlayer(byte byte0) static voidsendEatBody(IsoZombie zombie, IsoMovingObject target) static voidstatic voidsendFaction(Faction faction, boolean remove) static voidsendFactionInvite(Faction faction, IsoPlayer host, String invited) static voidstatic voidsendForageItemFound(IsoPlayer player, String string, float float0) voidsendGetAnimalTracks(IsoGameCharacter character) static voidstatic voidsendIsoWaveSignal(int sourceX, int sourceY, int channel, String msg, String guid, String codes, float r, float g, float b, int signalStrength, boolean isTV) static booleansendItemListNet(IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String sessionID, String custom) voidsendItemStats(InventoryItem item) voidsendLoginQueueDone(long long0) voidstatic voidsendNonPvpZone(NonPvpZone nonPvpZone, boolean remove) static voidvoidsendPersonalColor(IsoPlayer player) static voidsendPing()voidsendPlayer(IsoPlayer isoPlayer) voidsendPlayer2(IsoPlayer isoPlayer) voidsendPlayerConnect(IsoPlayer player) static voidstatic voidsendPlayerHit(IsoGameCharacter character, IsoObject object, HandWeapon weapon, float float1, boolean boolean0, float float0, boolean boolean1, boolean boolean3, boolean boolean2) static voidsendPlayerListensChannel(int channel, boolean listenmode, boolean isTV) static voidstatic voidsendRemoveItemFromContainer(ItemContainer container, InventoryItem item) voidsendSandboxOptionsToServer(SandboxOptions options) static voidsendServerPing(long timestamp) static voidsendSneezingCoughing(IsoPlayer player, int int0, byte byte0) static voidvoidsendSyncXp(IsoPlayer player) static voidsendVehicleHit(IsoPlayer player, IsoGameCharacter character, BaseVehicle vehicle, float float0, boolean boolean0, int int0, float float1, boolean boolean1) voidsendVisual(IsoPlayer player) voidsendWeaponHit(IsoPlayer player, HandWeapon weapon, IsoObject object) static voidsendWeight(IsoPlayer player) voidsendWorldMessage(String line) voidstatic voidsendZombieHit(IsoZombie zombie0, IsoPlayer player) static voidsendZombieHitThumpable(IsoGameCharacter character, IsoObject object) static voidsetIsClientPaused(boolean boolean0) voidsetRequest(GameClient.RequestState _request) voidsetResetID(int resetID) static voidsetServerStatisticEnable(boolean enable) voidShutdown()voidsmashWindow(IsoWindow window) static KahluaTablesortBrowserList(KahluaTableImpl kahluaTableImpl, String string, boolean boolean0) voidvoidvoidStopSound(IsoMovingObject object, String soundName, boolean trigger) voidtradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem item) voidtradingUISendRemoveItem(IsoPlayer var1, IsoPlayer var2, InventoryItem var3) voidtradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state) voidupdate()
-
Field Details
-
instance
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
bClient
public static boolean bClient -
connection
-
count
public static int count -
ip
-
ServerName
-
localIP
-
password
-
googleKey
-
allChatMuted
public static boolean allChatMuted -
username
-
serverPassword
-
useSteamRelay
public static boolean useSteamRelay -
authType
public static int authType -
udpEngine
-
ID
public byte ID -
timeSinceKeepAlive
public float timeSinceKeepAlive -
port
public static int port -
bPlayerConnectSent
public boolean bPlayerConnectSent -
checksum
-
checksumValid
public static boolean checksumValid -
pingsList
-
GameMap
-
bFastForward
public static boolean bFastForward -
loadedCells
-
DEBUG_PING
public int DEBUG_PING -
bCoopInvite
public static boolean bCoopInvite -
connectedPlayers
-
idMapDirty
public boolean idMapDirty -
sendZombieWithoutNeighbor
public static final int sendZombieWithoutNeighbor- See Also:
-
sendZombieWithNeighbor
public static final int sendZombieWithNeighbor- See Also:
-
sendZombieTimer
-
sendZombieRequestsTimer
-
steamID
public static long steamID -
positions
-
ServerSpawnRegions
-
bConnected
public boolean bConnected -
TimeSinceLastUpdate
public int TimeSinceLastUpdate -
ping
public int ping -
ServerPredictedAhead
public static float ServerPredictedAhead -
IDToPlayerMap
-
IDToZombieMap
-
bIngame
public static boolean bIngame -
askPing
public static boolean askPing -
askCustomizationData
public static boolean askCustomizationData -
sendQR
public static boolean sendQR -
ServerMods
-
erosionConfig
-
startAuth
-
poisonousBerry
-
poisonousMushroom
-
-
Constructor Details
-
GameClient
public GameClient()
-
-
Method Details
-
getPlayerByOnlineID
-
init
public void init() -
startClient
public void startClient() -
receiveStatistic
-
receiveStatisticRequest
-
generateSecretKey
-
getGoogleAuthenticatorBarCode
-
getQR
-
Shutdown
public void Shutdown() -
update
public void update() -
smashWindow
-
removeBrokenGlass
-
receivePingFromClient
-
delayPacket
public void delayPacket(int int1, int int2, int var3) -
receiveAddBrokenGlass
-
sendBigWaterSplash
public static void sendBigWaterSplash(int int0, int int1, float float0, float float1) -
receiveBigWaterSplash
-
sendFishingDataRequest
public static void sendFishingDataRequest() -
receiveFishingData
-
IsClientPaused
public static boolean IsClientPaused() -
setIsClientPaused
public static void setIsClientPaused(boolean boolean0) -
receiveChatMessageToPlayer
-
receivePlayerConnectedToChat
-
receivePlayerJoinChat
-
receiveInvMngRemoveItem
-
receiveInvMngGetItem
- Throws:
IOException
-
receiveInvMngReqItem
- Throws:
IOException
-
invMngRequestItem
-
invMngRequestRemoveItem
-
receiveSyncFaction
-
receiveChangeTextColor
-
receivePlaySoundEveryPlayer
-
receiveAddAlarm
-
receiveSyncDoorKey
-
sendAddXp
-
sendGetAnimalTracks
-
sendSyncXp
-
sendChangeSafety
-
addDisconnectPacket
public void addDisconnectPacket(int packet) -
connectionLost
public void connectionLost() -
SendCommandToServer
-
sendServerPing
public static void sendServerPing(long timestamp) -
receiveStopRain
-
receiveWeather
-
receiveWorldMapPlayerPosition
-
receiveWorldMap
- Throws:
IOException
-
setRequest
-
GameLoadingRequestData
public void GameLoadingRequestData() -
receiveSendCustomColor
-
receiveUpdateItemSprite
-
getServerSpawnRegions
-
sendZombieHit
-
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) -
sendZombieHitThumpable
-
sendAnimalHitThumpable
-
sendForageItemFound
-
sendPlayerHit
public static void sendPlayerHit(IsoGameCharacter character, IsoObject object, HandWeapon weapon, float float1, boolean boolean0, float float0, boolean boolean1, boolean boolean3, boolean boolean2) -
sendVehicleHit
public static void sendVehicleHit(IsoPlayer player, IsoGameCharacter character, BaseVehicle vehicle, float float0, boolean boolean0, int int0, float float1, boolean boolean1) -
sendEatBody
-
receiveEatBody
-
receiveSyncRadioData
-
sendWorldSound
-
sendLoginQueueRequest
public void sendLoginQueueRequest() -
sendLoginQueueDone
public void sendLoginQueueDone(long long0) -
canSeePlayerStats
public static boolean canSeePlayerStats() -
sendPersonalColor
-
sendChangedPlayerStats
-
receiveChangePlayerStats
-
sendPlayerConnect
-
sendCreatePlayer
public static void sendCreatePlayer(byte byte0) -
sendPlayer2
-
sendPlayer
-
heartBeat
public void heartBeat() -
getZombie
-
sendPlayerExtraInfo
-
setResetID
public void setResetID(int resetID) -
loadResetID
public void loadResetID() -
getPlayers
-
sendWeaponHit
-
receiveSyncIsoObject
-
receivePlayerTimeout
public static void receivePlayerTimeout(short playerID) -
disconnect
public void disconnect(boolean boolean0) -
resetDisconnectTimer
public void resetDisconnectTimer() -
getReconnectCountdownTimer
-
canConnect
public boolean canConnect() -
addIncoming
-
doDisconnect
-
removeZombieFromCache
-
sendWorldMessage
-
doConnect
-
doConnect
-
doConnectCoop
-
scoreboardUpdate
public void scoreboardUpdate() -
receiveAddAmbient
-
sendClientCommand
-
sendClientCommandV
-
sendAttachedItem
-
sendVisual
-
receiveBloodSplatter
-
receiveZombieSound
-
eatFood
-
drink
-
addToItemSendBuffer
-
addToItemRemoveSendBuffer
public void addToItemRemoveSendBuffer(IsoObject parent, ItemContainer container, InventoryItem item) -
sendAddedRemovedItems
public void sendAddedRemovedItems(boolean force) -
checkAddedRemovedItems
-
sendRemoveItemFromContainer
-
sendItemStats
-
PlayWorldSound
-
PlaySound
-
StopSound
-
startLocalServer
-
sendPing
public static void sendPing() -
receiveVehicles
-
getPlayerFromUsername
-
destroy
-
sendStopFire
-
receiveRadioDeviceDataState
-
sendRadioServerDataRequest
public static void sendRadioServerDataRequest() -
receiveRadioServerData
-
receiveRadioPostSilence
-
sendIsoWaveSignal
-
sendPlayerListensChannel
public static void sendPlayerListensChannel(int channel, boolean listenmode, boolean isTV) -
sendCompost
-
requestUserlog
-
addUserlog
-
removeUserlog
-
addWarningPoint
-
getConnectedPlayers
-
sendNonPvpZone
-
sendFaction
-
sendFactionInvite
-
acceptFactionInvite
-
getBannedIPs
public static void getBannedIPs() -
getBannedSteamIDs
public static void getBannedSteamIDs() -
sendItemListNet
-
receiveSendItemListNet
-
requestTrading
-
acceptTrading
-
tradingUISendAddItem
-
tradingUISendRemoveItem
-
tradingUISendUpdateState
-
setServerStatisticEnable
public static void setServerStatisticEnable(boolean enable) -
getServerStatisticEnable
public static boolean getServerStatisticEnable() -
receiveSpawnRegion
-
receiveClimateManagerPacket
-
receiveIsoRegionServerPacket
-
sendIsoRegionDataRequest
public static void sendIsoRegionDataRequest() -
sendSandboxOptionsToServer
-
receiveSandboxOptions
-
receiveChunkObjectState
-
receivePlayerLeaveChat
-
receiveInitPlayerChat
-
receiveAddChatTab
-
receiveRemoveChatTab
-
receivePlayerNotFound
-
sendPerks
-
receiveSyncPerks
-
sendWeight
-
receiveSyncWeight
-
sendEquippedRadioFreq
-
receiveSyncEquippedRadioFreq
-
sendSneezingCoughing
-
rememberPlayerPosition
-
sortBrowserList
public static KahluaTable sortBrowserList(KahluaTableImpl kahluaTableImpl, String string, boolean boolean0)
-