Class GameClient
java.lang.Object
zombie.network.GameClient
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanstatic booleanstatic intstatic Stringstatic booleanstatic booleanstatic booleanbooleanstatic UdpConnectionstatic booleanstatic intstatic final intstatic final intstatic booleanstatic Stringstatic Stringbytebooleanstatic final gnu.trove.map.hash.TShortObjectHashMap<IsoZombie> static booleanstatic final GameClientstatic Stringstatic final ClientServerMap[]static Stringstatic Stringintbooleanstatic Stringstatic Stringstatic intstatic booleanfinal UpdateLimitfinal UpdateLimitstatic final intstatic final intstatic Stringstatic Stringstatic floatse.krka.kahlua.vm.KahluaTablestatic 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 x, int y, int z) static voidvoiddisconnect(boolean doResetDisconnectTimer) voiddoConnect(String user, String pass, String serverIP, String localIP, String port, String serverPassword, String serverName, boolean useSteamRelay, int authType) voiddoConnect(String user, String pass, String serverIP, String localIP, String port, String serverPassword, String serverName, boolean useSteamRelay, int authType, String googleKey) voiddoConnectCoop(String serverSteamID) voiddoDisconnect(String string) voidvoidvoidstatic voidstatic voidgetGoogleAuthenticatorBarCode(String secretKey, String account, String issuer) getPlayerByOnlineID(short id) getPlayerFromUsername(String username) se.krka.kahlua.vm.KahluaTablestatic IsoZombiegetZombie(short id) voidvoidinit()static voidinvMngRequestItem(int itemId, String itemType, short playerID, String username) static voidinvMngRequestRemoveItem(int itemId, short playerID, String username) static voidinvMngRequestUpdateItem(InventoryItem item, short playerID) static booleanvoidvoidPlayWorldSound(String name, int x, int y, byte z) static voidreceiveAddAlarm(ByteBuffer bb, short packetType) static voidreceiveAddAmbient(ByteBuffer bb, short packetType) static voidreceiveAddBrokenGlass(ByteBuffer bb, short packetType) static voidreceiveAddChatTab(ByteBuffer bb, short packetType) static voidreceiveBigWaterSplash(ByteBuffer bb, short packetType) static voidreceiveBloodSplatter(ByteBuffer bb, short packetType) static voidreceiveChangePlayerStats(ByteBuffer bb, short packetType) static voidreceiveChangeTextColor(ByteBuffer bb, short packetType) static voidreceiveChatMessageToPlayer(ByteBuffer bb, short packetType) static voidreceiveChunkObjectState(ByteBuffer bb, short packetType) static voidreceiveClimateManagerPacket(ByteBuffer bb, short packetType) static voidreceiveEatBody(ByteBuffer bb, short packetType) static voidreceiveFishingData(ByteBuffer bb, short packetType) static voidreceiveInitPlayerChat(ByteBuffer bb, short packetType) static voidreceiveInvMngGetItem(ByteBuffer bb, short packetType) static voidreceiveInvMngRemoveItem(ByteBuffer bb, short packetType) static voidreceiveInvMngReqItem(ByteBuffer bb, short packetType) static voidreceiveIsoRegionServerPacket(ByteBuffer bb, short packetType) static voidreceivePlayerConnectedToChat(ByteBuffer bb, short packetType) static voidreceivePlayerJoinChat(ByteBuffer bb, short packetType) static voidreceivePlayerLeaveChat(ByteBuffer bb, short packetType) static voidreceivePlayerNotFound(ByteBuffer bb, short packetType) static voidreceivePlayerTimeout(short playerID) static voidreceivePlaySoundEveryPlayer(ByteBuffer bb, short packetType) static voidreceiveRadioDeviceDataState(ByteBuffer bb, short packetType) static voidreceiveRadioPostSilence(ByteBuffer bb, short packetType) static voidreceiveRadioServerData(ByteBuffer bb, short packetType) static voidreceiveRemoveChatTab(ByteBuffer bb, short packetType) static voidreceiveSandboxOptions(ByteBuffer bb, short packetType) static voidreceiveSendCustomColor(ByteBuffer bb, short packetType) static voidreceiveSendItemListNet(ByteBuffer bb, short packetType) static voidreceiveSpawnRegion(ByteBuffer bb, short packetType) static voidreceiveStopRain(ByteBuffer bb, short packetType) static voidreceiveSyncDoorKey(ByteBuffer bb, short packetType) static voidreceiveSyncEquippedRadioFreq(ByteBuffer bb, short packetType) static voidreceiveSyncFaction(ByteBuffer bb, short packetType) static voidreceiveSyncIsoObject(ByteBuffer bb, short packetType) static voidreceiveSyncPerks(ByteBuffer bb, short packetType) static voidreceiveSyncRadioData(ByteBuffer bb, short packetType) static voidreceiveSyncWeight(ByteBuffer bb, short packetType) static voidreceiveToxicBuilding(ByteBuffer bb, short packetType) static voidreceiveUpdateItemSprite(ByteBuffer bb, short packetType) static voidreceiveWeather(ByteBuffer bb, short packetType) static voidreceiveWorldMap(ByteBuffer bb, short packetType) static voidreceiveWorldMapPlayerPosition(ByteBuffer bb, short packetType) static voidreceiveZombieSound(ByteBuffer bb, short packetType) static voidrememberPlayerPosition(IsoPlayer player, float x, float y) voidremoveBrokenGlass(IsoWindow isoWindow) voidremoveUserlog(String user, String type, String text) voidvoidrequestTrading(IsoPlayer you, IsoPlayer other) voidrequestUserlog(String username) voidvoidsendAddedRemovedItems(boolean force) voidsendAddXp(IsoPlayer otherPlayer, PerkFactory.Perk perk, float amount, boolean noMultiplier) static voidsendAnimalHitAnimal(IsoGameCharacter wielder, IsoMovingObject target, float damage, boolean ignoreDamage) static voidsendAnimalHitPlayer(IsoGameCharacter wielder, IsoMovingObject target, float damage, boolean ignoreDamage) static voidsendAnimalHitThumpable(IsoGameCharacter wielder) voidsendAttachedItem(IsoGameCharacter character, String location, InventoryItem item) static voidsendBigWaterSplash(int x, int y, float dx, float dy) static voidvoidsendChangedPlayerStats(IsoPlayer otherPlayer) static voidsendChangeSafety(Safety safety) voidsendClientCommand(IsoPlayer player, String module, String command, se.krka.kahlua.vm.KahluaTable args) voidsendClientCommandV(IsoPlayer player, String module, String command, Object... objects) static voidSendCommandToServer(String command) static voidsendCompost(IsoCompost isoCompost) static voidsendCreatePlayer(byte playerIndex) 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 type, float amount) 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 dt) voidstatic voidsendNonPvpZone(NonPvpZone nonPvpZone, boolean remove) static voidvoidsendPersonalColor(IsoPlayer player) static voidsendPing()voidsendPlayer(IsoPlayer isoPlayer) voidsendPlayer2(IsoPlayer isoPlayer) voidsendPlayerConnect(IsoPlayer player) static voidsendPlayerDamage(IsoPlayer player) static voidstatic voidsendPlayerHit(IsoGameCharacter wielder, IsoObject target, HandWeapon weapon, float damage, boolean ignoreDamage, float range, boolean isCriticalHit, boolean helmetFall, boolean hitHead) static voidsendPlayerListensChannel(int channel, boolean listenmode, boolean isTV) static voidstatic voidsendRemoveItemFromContainer(ItemContainer container, InventoryItem item) voidsendSandboxOptionsToServer(SandboxOptions options) static voidsendSneezingCoughing(IsoPlayer player, int sneezingCoughing, byte sneezeVar) static voidstatic voidsendVehicleHit(IsoPlayer wielder, IsoGameCharacter target, BaseVehicle vehicle, float damage, boolean isTargetHitFromBehind, int vehicleDamage, float vehicleSpeed, boolean isVehicleHitFromBehind) voidsendVisual(IsoPlayer player) static voidsendWeight(IsoPlayer player) voidsendWorldMessage(String line) voidstatic voidsendZombieHit(IsoZombie wielder, IsoPlayer target) static voidsendZombieHitThumpable(IsoGameCharacter wielder, IsoObject thumpable) static voidsetIsClientPaused(boolean val) voidsetRequest(GameClient.RequestState request) voidsetResetID(int resetId) voidShutdown()voidsmashWindow(IsoWindow isoWindow) static se.krka.kahlua.vm.KahluaTablesortBrowserList(se.krka.kahlua.j2se.KahluaTableImpl table, String sortType, boolean sortDown, se.krka.kahlua.j2se.KahluaTableImpl filterTable) voidvoidvoidStopSound(IsoMovingObject object, String soundName, boolean trigger) voidtradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem item) voidtradingUISendRemoveItem(IsoPlayer you, IsoPlayer other, InventoryItem item) voidtradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state) voidupdate()
-
Field Details
-
instance
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
client
public static boolean client -
clientSave
public static boolean clientSave -
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 -
playerConnectSent
public boolean playerConnectSent -
checksum
-
checksumValid
public static boolean checksumValid -
pingsList
-
gameMap
-
fastForward
public static boolean fastForward -
loadedCells
-
DEBUG_PING
public static final int DEBUG_PING- See Also:
-
coopInvite
public static boolean coopInvite -
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
public se.krka.kahlua.vm.KahluaTable serverSpawnRegions -
connected
public boolean connected -
timeSinceLastUpdate
public int timeSinceLastUpdate -
ping
public int ping -
serverPredictedAhead
public static float serverPredictedAhead -
IDToPlayerMap
-
IDToZombieMap
-
ingame
public static boolean ingame -
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() -
generateSecretKey
-
getGoogleAuthenticatorBarCode
-
getQR
-
Shutdown
public void Shutdown() -
update
public void update() -
smashWindow
-
removeBrokenGlass
-
delayPacket
public void delayPacket(int x, int y, int z) -
receiveAddBrokenGlass
-
sendBrokenGlass
-
sendPlayerDamage
-
sendBigWaterSplash
public static void sendBigWaterSplash(int x, int y, float dx, float dy) -
receiveBigWaterSplash
-
sendFishingDataRequest
public static void sendFishingDataRequest() -
receiveFishingData
-
IsClientPaused
public static boolean IsClientPaused() -
setIsClientPaused
public static void setIsClientPaused(boolean val) -
receiveChatMessageToPlayer
-
receivePlayerConnectedToChat
-
receivePlayerJoinChat
-
receiveInvMngRemoveItem
-
receiveInvMngGetItem
- Throws:
IOException
-
receiveInvMngReqItem
- Throws:
IOException
-
invMngRequestItem
-
invMngRequestRemoveItem
-
invMngRequestUpdateItem
-
receiveSyncFaction
-
receiveChangeTextColor
-
receivePlaySoundEveryPlayer
-
receiveAddAlarm
-
receiveToxicBuilding
-
receiveSyncDoorKey
-
sendAddXp
public void sendAddXp(IsoPlayer otherPlayer, PerkFactory.Perk perk, float amount, boolean noMultiplier) -
sendGetAnimalTracks
-
sendChangeSafety
-
addDisconnectPacket
public void addDisconnectPacket(int packet) -
connectionLost
public void connectionLost() -
SendCommandToServer
-
receiveStopRain
-
receiveWeather
-
receiveWorldMapPlayerPosition
-
receiveWorldMap
- Throws:
IOException
-
setRequest
-
GameLoadingRequestData
public void GameLoadingRequestData() -
receiveSendCustomColor
-
receiveUpdateItemSprite
-
getServerSpawnRegions
public se.krka.kahlua.vm.KahluaTable getServerSpawnRegions() -
sendZombieHit
-
sendAnimalHitPlayer
public static void sendAnimalHitPlayer(IsoGameCharacter wielder, IsoMovingObject target, float damage, boolean ignoreDamage) -
sendAnimalHitAnimal
public static void sendAnimalHitAnimal(IsoGameCharacter wielder, IsoMovingObject target, float damage, boolean ignoreDamage) -
sendZombieHitThumpable
-
sendAnimalHitThumpable
-
sendForageItemFound
-
sendPlayerHit
public static void sendPlayerHit(IsoGameCharacter wielder, IsoObject target, HandWeapon weapon, float damage, boolean ignoreDamage, float range, boolean isCriticalHit, boolean helmetFall, boolean hitHead) -
sendVehicleHit
public static void sendVehicleHit(IsoPlayer wielder, IsoGameCharacter target, BaseVehicle vehicle, float damage, boolean isTargetHitFromBehind, int vehicleDamage, float vehicleSpeed, boolean isVehicleHitFromBehind) -
sendEatBody
-
receiveEatBody
-
receiveSyncRadioData
-
sendWorldSound
-
sendLoginQueueRequest
public void sendLoginQueueRequest() -
sendLoginQueueDone
public void sendLoginQueueDone(long dt) -
canSeePlayerStats
public static boolean canSeePlayerStats() -
sendPersonalColor
-
sendChangedPlayerStats
-
receiveChangePlayerStats
-
sendPlayerConnect
-
sendCreatePlayer
public static void sendCreatePlayer(byte playerIndex) -
sendPlayer2
-
sendPlayer
-
heartBeat
public void heartBeat() -
getZombie
-
sendPlayerExtraInfo
-
setResetID
public void setResetID(int resetId) -
loadResetID
public void loadResetID() -
getPlayers
-
receiveSyncIsoObject
-
receivePlayerTimeout
public static void receivePlayerTimeout(short playerID) -
disconnect
public void disconnect(boolean doResetDisconnectTimer) -
resetDisconnectTimer
public void resetDisconnectTimer() -
getReconnectCountdownTimer
-
canConnect
public boolean canConnect() -
addIncoming
-
doDisconnect
-
removeZombieFromCache
-
sendWorldMessage
-
doConnect
-
doConnect
-
doConnectCoop
-
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
-
StopSound
-
startLocalServer
-
sendPing
public static void sendPing() -
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
-
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 se.krka.kahlua.vm.KahluaTable sortBrowserList(se.krka.kahlua.j2se.KahluaTableImpl table, String sortType, boolean sortDown, se.krka.kahlua.j2se.KahluaTableImpl filterTable)
-