Package zombie.network
Class GameClient
java.lang.Object
zombie.network.GameClient
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
static boolean
static boolean
boolean
static boolean
static boolean
static boolean
boolean
static String
static boolean
static UdpConnection
static int
int
static final int
static String
byte
boolean
static final HashMap
static final gnu.trove.map.hash.TShortObjectHashMap
static final GameClient
static String
static final ClientServerMap[]
static String
static String
int
static List
static String
static String
static int
static final Map
final UpdateLimit
final UpdateLimit
final ArrayList
static String
static String
static float
static Calendar
static long
float
int
static String
static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
acceptFactionInvite
(Faction faction, String string) static void
acceptSafehouseInvite
(SafeHouse safeHouse, String string) void
acceptTrading
(IsoPlayer player, IsoPlayer player2, boolean boolean1) void
addDisconnectPacket
(int int1) void
addIncoming
(short short1, ByteBuffer byteBuffer) static void
void
addToItemRemoveSendBuffer
(IsoObject object, ItemContainer itemContainer, InventoryItem inventoryItem) void
addToItemSendBuffer
(IsoObject object, ItemContainer itemContainer, InventoryItem inventoryItem) void
addUserlog
(String string, String string2, String string3) void
addWarningPoint
(String string, String string2, int int1) boolean
static boolean
static boolean
void
checkAddedRemovedItems
(IsoObject object) static void
void
static void
void
void
doConnect
(String string, String string2, String string3, String string4, String string5, String string6, String string7, boolean boolean1) void
doConnectCoop
(String string) void
doDisconnect
(String string) void
void
void
void
executeQuery
(String string, KahluaTable kahluaTable) void
static void
void
getPlayerByOnlineID
(short short1) getPlayerFromUsername
(String string) static boolean
void
getTableResult
(String string, int int1) static void
getTickets
(String string) static IsoZombie
getZombie
(short short1) void
void
init()
static void
invMngRequestItem
(int int1, String string, IsoPlayer player) static void
invMngRequestRemoveItem
(int int1, IsoPlayer player) static boolean
void
void
PlaySound
(String string, boolean boolean1, IsoMovingObject movingObject) void
PlayWorldSound
(String string, int int1, int int2, byte byte1) static void
receiveEatBody
(ByteBuffer byteBuffer, short short1) boolean
receivePlayerConnectWhileLoading
(ByteBuffer byteBuffer) static void
receivePlayerTimeout
(short short1) static void
receiveRadioDeviceDataState
(ByteBuffer byteBuffer, short short1) static void
receiveRadioPostSilence
(ByteBuffer byteBuffer, short short1) static void
receiveRadioServerData
(ByteBuffer byteBuffer, short short1) static void
receiveSyncCustomLightSettings
(ByteBuffer byteBuffer, short short1) static void
receiveSyncRadioData
(ByteBuffer byteBuffer, short short1) static void
receiveThump
(ByteBuffer byteBuffer, short short1) static void
receiveWaveSignal
(ByteBuffer byteBuffer, short short1) static void
registerZone
(IsoMetaGrid.Zone zone, boolean boolean1) static void
removeTicket
(int int1) void
removeUserlog
(String string, String string2, String string3) void
removeZombieFromCache
(IsoZombie zombie) void
void
requestTrading
(IsoPlayer player, IsoPlayer player2) void
requestUserlog
(String string) void
void
static void
sendAction
(BaseAction baseAction, boolean boolean1) void
sendAddedRemovedItems
(boolean boolean1) void
sendAdditionalPain
(int int1, int int2, float float1) void
sendAddXp
(IsoPlayer player, PerkFactory.Perk perk, int int1) void
sendAttachedItem
(IsoPlayer player, String string, InventoryItem inventoryItem) void
sendBandage
(int int1, int int2, boolean boolean1, float float1, boolean boolean2, String string) static void
sendBuildingStashToDo
(String string) static void
sendBurnCorpse
(short short1, short short2) void
sendCataplasm
(int int1, int int2, float float1, float float2, float float3) void
sendChangedPlayerStats
(IsoPlayer player) static void
sendChangeSafety
(Safety safety) void
sendCleanBurn
(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, InventoryItem inventoryItem) void
sendClientCommand
(IsoPlayer player, String string, String string2, KahluaTable kahluaTable) void
sendClientCommandV
(IsoPlayer player, String string, String string2, Object[] objectArray) void
sendClothing
(IsoPlayer player, String string, InventoryItem inventoryItem) static void
SendCommandToServer
(String string) static void
sendCompost
(IsoCompost compost) void
sendCustomColor
(IsoObject object) void
sendDisinfect
(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, InventoryItem inventoryItem) static void
sendEatBody
(IsoZombie zombie, IsoMovingObject movingObject) static void
sendEquippedRadioFreq
(IsoPlayer player) static void
static void
sendFaction
(Faction faction, boolean boolean1) static void
sendFactionInvite
(Faction faction, IsoPlayer player, 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
static void
sendIsoWaveSignal
(int int1, int int2, int int3, String string, String string2, String string3, float float1, float float2, float float3, int int4, boolean boolean1) static boolean
sendItemListNet
(IsoPlayer player, ArrayList arrayList, IsoPlayer player2, String string, String string2) void
sendItemStats
(InventoryItem inventoryItem) static void
sendKickOutOfSafehouse
(IsoPlayer player) void
sendLoginQueueDone2
(long long1) void
static void
sendNonPvpZone
(NonPvpZone nonPvpZone, boolean boolean1) static void
void
sendPersonalColor
(IsoPlayer player) static void
sendPing()
void
sendPlayer
(IsoPlayer player) void
sendPlayer2
(IsoPlayer player) void
sendPlayerConnect
(IsoPlayer player) static void
sendPlayerDamage
(IsoPlayer player) static 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) Deprecated.static void
void
sendRemoveBullet
(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart) static void
sendRemoveCorpseFromMap
(IsoDeadBody deadBody) void
sendRemoveGlass
(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, boolean boolean1) void
sendReplaceOnCooked
(InventoryItem inventoryItem) static void
sendRequestInventory
(IsoPlayer player) static void
sendSafehouse
(SafeHouse safeHouse, boolean boolean1) static void
sendSafehouseInvite
(SafeHouse safeHouse, IsoPlayer player, String string) void
sendSandboxOptionsToServer
(SandboxOptions sandboxOptions) static void
sendServerPing
(long long1) static void
sendSneezingCoughing
(short short1, int int1, byte byte1) void
sendSplint
(int int1, int int2, boolean boolean1, float float1, String string) void
sendStitch
(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, InventoryItem inventoryItem, boolean boolean1) 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) static void
sendValidatePacket
(ValidatePacket validatePacket) void
sendVisual
(IsoPlayer player) void
sendWeaponHit
(IsoPlayer player, HandWeapon handWeapon, IsoObject object) static void
sendWeight
(IsoPlayer player) void
sendWorldMessage
(String string) void
sendWorldSound
(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) Deprecated.static void
sendZombieDeath
(IsoZombie zombie) static void
sendZombieHelmetFall
(IsoPlayer player, IsoGameCharacter gameCharacter, InventoryItem inventoryItem) void
setRequest
(GameClient.RequestState requestState) void
setResetID
(int int1) static void
setServerStatisticEnable
(boolean boolean1) void
Shutdown()
void
smashWindow
(IsoWindow window, int int1) void
void
void
StopSound
(IsoMovingObject movingObject, String string, boolean boolean1) 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)
-
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
-
allChatMuted
public static boolean allChatMuted -
username
-
serverPassword
-
useSteamRelay
public static boolean useSteamRelay -
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 -
objectSyncReq
-
worldObjectsSyncReq
-
bCoopInvite
public static boolean bCoopInvite -
idMapDirty
public boolean idMapDirty -
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
public static final gnu.trove.map.hash.TShortObjectHashMap IDToZombieMap -
bIngame
public static boolean bIngame -
askPing
public static boolean askPing -
ServerMods
-
erosionConfig
-
startAuth
-
poisonousBerry
-
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() -
IsClientPaused
public static boolean IsClientPaused() -
invMngRequestItem
-
invMngRequestRemoveItem
-
checksumServer
public static void checksumServer() -
sendAddXp
-
sendSyncXp
-
sendTransactionID
-
sendChangeSafety
-
addDisconnectPacket
public void addDisconnectPacket(int int1) -
connectionLost
public void connectionLost() -
SendCommandToServer
-
sendServerPing
public static void sendServerPing(long long1) -
setRequest
-
GameLoadingRequestData
public void GameLoadingRequestData() -
getServerSpawnRegions
-
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
-
sendAction
-
sendEatBody
-
receiveEatBody
-
sendThump
-
receiveSyncRadioData
-
receiveThump
-
sendWorldSound
-
sendLoginQueueRequest2
public void sendLoginQueueRequest2() -
sendLoginQueueDone2
public void sendLoginQueueDone2(long long1) -
canSeePlayerStats
public static boolean canSeePlayerStats() -
canModifyPlayerStats
public static boolean canModifyPlayerStats() -
sendPersonalColor
-
sendChangedPlayerStats
-
writePlayerConnectData
-
sendPlayerConnect
-
sendPlayerSave
Deprecated. -
sendPlayer2
-
sendPlayer
-
heartBeat
public void heartBeat() -
getZombie
-
sendPlayerExtraInfo
-
setResetID
public void setResetID(int int1) -
loadResetID
public void loadResetID() -
receivePlayerConnectWhileLoading
-
getPlayers
-
sendWeaponHit
-
receiveSyncCustomLightSettings
-
receivePlayerTimeout
public static void receivePlayerTimeout(short short1) -
disconnect
public void disconnect() -
resetDisconnectTimer
public void resetDisconnectTimer() -
getReconnectCountdownTimer
-
canConnect
public boolean canConnect() -
addIncoming
-
doDisconnect
-
removeZombieFromCache
-
equip
-
sendWorldMessage
-
doConnect
-
doConnectCoop
-
scoreboardUpdate
public void scoreboardUpdate() -
sendWorldSound
public void sendWorldSound(Object object, int int1, int int2, int int3, int int4, int int5, boolean boolean1, float float1, float float2) -
sendClientCommand
public void sendClientCommand(IsoPlayer player, String string, String string2, KahluaTable kahluaTable) -
sendClientCommandV
-
sendClothing
-
sendAttachedItem
-
sendVisual
-
sendCustomColor
-
sendBandage
public void sendBandage(int int1, int int2, boolean boolean1, float float1, boolean boolean2, String string) -
sendStitch
public void sendStitch(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, InventoryItem inventoryItem, boolean boolean1) -
sendWoundInfection
Deprecated. -
sendDisinfect
public void sendDisinfect(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, InventoryItem inventoryItem) -
sendSplint
-
sendAdditionalPain
public void sendAdditionalPain(int int1, int int2, float float1) -
sendRemoveGlass
public void sendRemoveGlass(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, boolean boolean1) -
sendRemoveBullet
public void sendRemoveBullet(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart) -
sendCleanBurn
public void sendCleanBurn(IsoGameCharacter gameCharacter, IsoGameCharacter gameCharacter2, BodyPart bodyPart, InventoryItem inventoryItem) -
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
-
sendReplaceOnCooked
-
sendItemStats
-
PlayWorldSound
-
PlaySound
-
StopSound
-
startLocalServer
- Throws:
Exception
-
sendPing
public static void sendPing() -
registerZone
-
sendSafehouse
-
sendKickOutOfSafehouse
-
getPlayerFromUsername
-
destroy
-
sendTeleport
-
sendStopFire
-
sendStopFire
-
sendCataplasm
public void sendCataplasm(int int1, int int2, float float1, float float2, float float3) -
receiveRadioDeviceDataState
-
sendRadioServerDataRequest
public static void sendRadioServerDataRequest() -
receiveRadioServerData
-
receiveRadioPostSilence
-
sendIsoWaveSignal
-
receiveWaveSignal
-
sendPlayerListensChannel
public static void sendPlayerListensChannel(int int1, boolean boolean1, boolean boolean2) -
sendFurnaceChange
-
sendCompost
-
requestUserlog
-
addUserlog
-
removeUserlog
-
addWarningPoint
-
wakeUpPlayer
-
getDBSchema
public void getDBSchema() -
getTableResult
-
executeQuery
-
getConnectedPlayers
-
sendNonPvpZone
-
sendFaction
-
sendFactionInvite
-
acceptFactionInvite
-
addTicket
-
getTickets
-
removeTicket
public static void removeTicket(int int1) -
sendItemListNet
-
requestTrading
-
acceptTrading
-
tradingUISendAddItem
-
tradingUISendRemoveItem
-
tradingUISendUpdateState
-
sendBuildingStashToDo
-
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
-
sendSneezingCoughing
public static void sendSneezingCoughing(short short1, int int1, byte byte1) -
sendBurnCorpse
public static void sendBurnCorpse(short short1, short short2) -
sendValidatePacket
-