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 gnu.trove.map.hash.TShortObjectHashMap<IsoZombie>
static final GameClient
static String
static final ClientServerMap[]
static String
static String
int
static String
static String
static int
final UpdateLimit
final UpdateLimit
static String
static String
static float
se.krka.kahlua.vm.KahluaTable
static Calendar
float
int
static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
acceptFactionInvite
(Faction faction, String host) static void
acceptSafehouseInvite
(SafeHouse safehouse, String host) void
acceptTrading
(IsoPlayer you, IsoPlayer other, boolean accept) void
addDisconnectPacket
(int packet) void
addIncoming
(short id, ByteBuffer bb) static void
void
addToItemRemoveSendBuffer
(IsoObject parent, ItemContainer container, InventoryItem item) void
addToItemSendBuffer
(IsoObject parent, ItemContainer container, InventoryItem item) void
addUserlog
(String user, String type, String text) void
addWarningPoint
(String user, String reason, int amount) boolean
static boolean
static boolean
void
checkAddedRemovedItems
(IsoObject aboutToRemove) static void
void
static void
void
void
doConnect
(String user, String pass, String serverIP, String localIP, String port, String serverPassword, String serverName) void
doConnectCoop
(String serverSteamID) void
doDisconnect
(String string) void
void
void
void
executeQuery
(String query, se.krka.kahlua.vm.KahluaTable params) void
static void
void
getPlayerByOnlineID
(short id) getPlayerFromUsername
(String username) se.krka.kahlua.vm.KahluaTable
static boolean
void
getTableResult
(String tableName, int numberPerPages) static void
getTickets
(String author) static IsoZombie
getZombie
(short id) void
void
init()
static void
invMngRequestItem
(int itemId, String itemType, IsoPlayer player) static void
invMngRequestRemoveItem
(int itemId, IsoPlayer player) static boolean
void
void
PlaySound
(String name, boolean loop, IsoMovingObject object) void
PlayWorldSound
(String name, int x, int y, byte z) static void
receiveEatBody
(ByteBuffer bb, short packetType) boolean
static void
receivePlayerTimeout
(short playerID) static void
receiveRadioDeviceDataState
(ByteBuffer bb, short packetType) static void
receiveRadioPostSilence
(ByteBuffer bb, short packetType) static void
receiveRadioServerData
(ByteBuffer bb, short packetType) static void
receiveSyncCustomLightSettings
(ByteBuffer bb, short packetType) static void
receiveSyncRadioData
(ByteBuffer bb, short packetType) static void
receiveThump
(ByteBuffer bb, short packetType) static void
receiveWaveSignal
(ByteBuffer bb, short packetType) static void
registerZone
(IsoMetaGrid.Zone zone, boolean transmitToOthers) static void
removeTicket
(int ticketID) void
removeUserlog
(String user, String type, String text) void
void
void
requestTrading
(IsoPlayer you, IsoPlayer other) void
requestUserlog
(String user) void
void
static void
sendAction
(BaseAction action, boolean operation) void
sendAddedRemovedItems
(boolean force) void
sendAdditionalPain
(int onlineID, int i, float level) void
sendAddXp
(IsoPlayer otherPlayer, PerkFactory.Perk perk, int amount) void
sendAttachedItem
(IsoPlayer player, String location, InventoryItem item) void
sendBandage
(int onlineID, int i, boolean bandaged, float bandageLife, boolean isAlcoholic, String bandageType) static void
sendBuildingStashToDo
(String stashName) static void
sendBurnCorpse
(short playerId, short objectId) void
sendCataplasm
(int onlineID, int i, float plantainFactor, float comfreyFactor, float garlicFactor) void
sendChangedPlayerStats
(IsoPlayer otherPlayer) static void
sendChangeSafety
(Safety safety) void
sendCleanBurn
(IsoGameCharacter _wielder, IsoGameCharacter _target, BodyPart bodyPart, InventoryItem _bandage) void
sendClientCommand
(IsoPlayer player, String module, String command, se.krka.kahlua.vm.KahluaTable args) void
sendClientCommandV
(IsoPlayer player, String module, String command, Object... objects) void
sendClothing
(IsoPlayer player, String location, InventoryItem item) static void
SendCommandToServer
(String command) static void
sendCompost
(IsoCompost isoCompost) void
sendCustomColor
(IsoObject item) void
sendDisinfect
(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem alcohol) static void
sendEatBody
(IsoZombie zombie, IsoMovingObject target) static void
static void
static void
sendFaction
(Faction faction, boolean remove) static void
sendFactionInvite
(Faction faction, IsoPlayer host, String invited) static void
sendFurnaceChange
(BSFurnace furnace) static void
sendGetItemInvMng
(long itemId) static boolean
sendHitCharacter
(IsoGameCharacter wielder, IsoMovingObject target, HandWeapon weapon, float damage, boolean ignoreDamage, float range, boolean isCriticalHit, boolean helmetFall, boolean hitHead) static void
sendHitVehicle
(IsoPlayer wielder, IsoGameCharacter target, BaseVehicle vehicle, float damage, boolean isTargetHitFromBehind, int vehicleDamage, float vehicleSpeed, boolean isVehicleHitFromBehind) static void
static void
sendIsoWaveSignal
(int sourceX, int sourceY, int channel, String msg, String guid, String codes, float r, float g, float b, int signalStrength, boolean isTV) static boolean
sendItemListNet
(IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String sessionID, String custom) void
sendItemStats
(InventoryItem item) static void
sendKickOutOfSafehouse
(IsoPlayer player) void
sendLoginQueueDone2
(long dt) void
static void
sendNonPvpZone
(NonPvpZone nonPvpZone, boolean remove) static void
void
sendPersonalColor
(IsoPlayer player) static void
sendPing()
void
sendPlayer
(IsoPlayer isoPlayer) void
sendPlayer2
(IsoPlayer isoPlayer) void
sendPlayerConnect
(IsoPlayer player) static void
sendPlayerDamage
(IsoPlayer player) static void
sendPlayerDeath
(IsoPlayer player) static void
static void
sendPlayerInjuries
(IsoPlayer player) static void
sendPlayerListensChannel
(int channel, boolean listenmode, boolean isTV) void
sendPlayerSave
(IsoPlayer player) Deprecated.static void
void
sendRemoveBullet
(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart) static void
sendRemoveCorpseFromMap
(IsoDeadBody deadBody) void
sendRemoveGlass
(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, boolean handPain) void
static void
sendRequestInventory
(IsoPlayer player) static void
sendSafehouse
(SafeHouse safehouse, boolean remove) static void
sendSafehouseInvite
(SafeHouse safehouse, IsoPlayer host, String invited) void
sendSandboxOptionsToServer
(SandboxOptions options) static void
sendServerPing
(long timestamp) static void
sendSneezingCoughing
(short playerId, int sneezingCoughing, byte sneezeVar) void
sendSplint
(int onlineID, int i, boolean doIt, float factor, String splintItem) void
sendStitch
(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem item, boolean doIt) static void
static void
void
sendSyncXp
(IsoPlayer player) static void
sendTeleport
(IsoPlayer player, float x, float y, float z) static void
sendThump
(IsoGameCharacter zombie, Thumpable thumpable) void
sendTransactionID
(IsoPlayer player) static void
sendValidatePacket
(ValidatePacket packet) void
sendVisual
(IsoPlayer player) void
sendWeaponHit
(IsoPlayer player, HandWeapon weapon, IsoObject object) static void
sendWeight
(IsoPlayer player) void
sendWorldMessage
(String line) void
sendWorldSound
(Object source, int x, int y, int z, int radius, int volume, boolean stressHumans, float zombieIgnoreDist, float stressMod) void
void
sendWoundInfection
(int onlineID, int i, boolean infected) Deprecated.static void
sendZombieDeath
(IsoZombie zombie) static void
sendZombieHelmetFall
(IsoPlayer player, IsoGameCharacter zombie, InventoryItem item) void
setRequest
(GameClient.RequestState request) void
setResetID
(int resetID) static void
setServerStatisticEnable
(boolean enable) void
Shutdown()
void
smashWindow
(IsoWindow isoWindow, int action) void
void
void
StopSound
(IsoMovingObject object, String soundName, boolean trigger) void
tradingUISendAddItem
(IsoPlayer you, IsoPlayer other, InventoryItem item) void
tradingUISendRemoveItem
(IsoPlayer you, IsoPlayer other, int index) void
tradingUISendUpdateState
(IsoPlayer you, IsoPlayer other, int state) void
update()
void
wakeUpPlayer
(IsoPlayer chr) void
writePlayerConnectData
(ByteBufferWriter b, 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
-
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
-
positions
-
ServerSpawnRegions
public se.krka.kahlua.vm.KahluaTable 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 -
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 packet) -
connectionLost
public void connectionLost() -
SendCommandToServer
-
sendServerPing
public static void sendServerPing(long timestamp) -
setRequest
-
GameLoadingRequestData
public void GameLoadingRequestData() -
getServerSpawnRegions
public se.krka.kahlua.vm.KahluaTable getServerSpawnRegions() -
sendHitCharacter
public static boolean sendHitCharacter(IsoGameCharacter wielder, IsoMovingObject target, HandWeapon weapon, float damage, boolean ignoreDamage, float range, boolean isCriticalHit, boolean helmetFall, boolean hitHead) -
sendHitVehicle
public static void sendHitVehicle(IsoPlayer wielder, IsoGameCharacter target, BaseVehicle vehicle, float damage, boolean isTargetHitFromBehind, int vehicleDamage, float vehicleSpeed, boolean isVehicleHitFromBehind) -
sendZombieDeath
-
sendPlayerDeath
-
sendPlayerDamage
-
sendPlayerInjuries
-
sendRemoveCorpseFromMap
-
sendEvent
-
sendAction
-
sendEatBody
-
receiveEatBody
-
sendThump
-
receiveSyncRadioData
-
receiveThump
-
sendWorldSound
-
sendLoginQueueRequest2
public void sendLoginQueueRequest2() -
sendLoginQueueDone2
public void sendLoginQueueDone2(long dt) -
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 resetID) -
loadResetID
public void loadResetID() -
receivePlayerConnectWhileLoading
-
getPlayers
-
sendWeaponHit
-
receiveSyncCustomLightSettings
-
receivePlayerTimeout
public static void receivePlayerTimeout(short playerID) -
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 source, int x, int y, int z, int radius, int volume, boolean stressHumans, float zombieIgnoreDist, float stressMod) -
sendClientCommand
-
sendClientCommandV
-
sendClothing
-
sendAttachedItem
-
sendVisual
-
sendCustomColor
-
sendBandage
public void sendBandage(int onlineID, int i, boolean bandaged, float bandageLife, boolean isAlcoholic, String bandageType) -
sendStitch
public void sendStitch(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem item, boolean doIt) -
sendWoundInfection
Deprecated. -
sendDisinfect
public void sendDisinfect(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem alcohol) -
sendSplint
-
sendAdditionalPain
public void sendAdditionalPain(int onlineID, int i, float level) -
sendRemoveGlass
public void sendRemoveGlass(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, boolean handPain) -
sendRemoveBullet
-
sendCleanBurn
public void sendCleanBurn(IsoGameCharacter _wielder, IsoGameCharacter _target, BodyPart bodyPart, InventoryItem _bandage) -
eatFood
-
drink
-
addToItemSendBuffer
-
addToItemRemoveSendBuffer
public void addToItemRemoveSendBuffer(IsoObject parent, ItemContainer container, InventoryItem item) -
sendAddedRemovedItems
public void sendAddedRemovedItems(boolean force) -
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 onlineID, int i, float plantainFactor, float comfreyFactor, float garlicFactor) -
receiveRadioDeviceDataState
-
sendRadioServerDataRequest
public static void sendRadioServerDataRequest() -
receiveRadioServerData
-
receiveRadioPostSilence
-
sendIsoWaveSignal
-
receiveWaveSignal
-
sendPlayerListensChannel
public static void sendPlayerListensChannel(int channel, boolean listenmode, boolean isTV) -
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 ticketID) -
sendItemListNet
-
requestTrading
-
acceptTrading
-
tradingUISendAddItem
-
tradingUISendRemoveItem
-
tradingUISendUpdateState
-
sendBuildingStashToDo
-
setServerStatisticEnable
public static void setServerStatisticEnable(boolean enable) -
getServerStatisticEnable
public static boolean getServerStatisticEnable() -
sendRequestInventory
-
sendGetItemInvMng
public static void sendGetItemInvMng(long itemId) -
sendIsoRegionDataRequest
public static void sendIsoRegionDataRequest() -
sendSandboxOptionsToServer
-
sendZombieHelmetFall
public static void sendZombieHelmetFall(IsoPlayer player, IsoGameCharacter zombie, InventoryItem item) -
sendPerks
-
sendWeight
-
sendSafehouseInvite
-
acceptSafehouseInvite
-
sendEquippedRadioFreq
-
sendSneezingCoughing
public static void sendSneezingCoughing(short playerId, int sneezingCoughing, byte sneezeVar) -
sendBurnCorpse
public static void sendBurnCorpse(short playerId, short objectId) -
sendValidatePacket
-