Package zombie.core.raknet
Class UdpConnection
java.lang.Object
zombie.core.raknet.UdpConnection
public class UdpConnection
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UdpConnection.ChecksumState
class
UdpConnection.MPClientStatistic
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
accessLevel
boolean
allChatMuted
boolean
awaitingCoopApprove
UdpConnection.ChecksumState
checksumState
long
checksumTime
int
ChunkGridWidth
gnu.trove.list.array.TShortArrayList
chunkObjectState
Vector3[]
connectArea
java.lang.String
idStr
int
index
java.lang.String
ip
boolean
isCoopHost
boolean
isNeighborPlayer
ClientServerMap[]
loadedCells
ZNetStatistics
netStatistics
long
ownerID
long[]
packetCounts
java.lang.String
password
boolean
ping
PlayerDownloadServer
playerDownloadServer
short[]
playerIDs
IsoPlayer[]
players
Vector3[]
ReleventPos
byte
ReleventRange
boolean
sendPulse
UdpConnection.MPClientStatistic
statistic
long
steamID
UpdateTimer
timerSendZombie
java.lang.String
username
java.lang.String[]
usernames
gnu.trove.set.hash.TShortHashSet
vehicles
-
Constructor Summary
Constructors Constructor Description UdpConnection(UdpEngine udpEngine, long long1, int int1)
-
Method Summary
Modifier and Type Method Description void
calcCountPlayersInRelevantPosition()
void
cancelPacket()
void
close()
void
disconnect(java.lang.String string)
void
endPacket()
void
endPacket(int int1, int int2, byte byte1)
void
endPacketImmediate()
void
endPacketSuperHighUnreliable()
void
endPacketUnordered()
void
endPacketUnreliable()
void
endPingPacket()
void
forceDisconnect()
int
getAveragePing()
long
getConnectedGUID()
java.net.InetSocketAddress
getInetSocketAddress()
int
getLastPing()
int
getLowestPing()
int
getMTUSize()
RakNetPeerInterface
getPeer()
float
getRelevantAndDistance(float float1, float float2, float float3)
java.lang.String
getServerIP()
ZNetStatistics
getStatistics()
boolean
isFullyConnected()
boolean
RelevantTo(float float1, float float2)
boolean
RelevantTo(float float1, float float2, float float3)
boolean
RelevantToPlayerIndex(int int1, float float1, float float2)
void
setFullyConnected()
ByteBufferWriter
startPacket()
ByteBufferWriter
startPingPacket()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
index
public int index -
allChatMuted
public boolean allChatMuted -
username
public java.lang.String username -
usernames
public java.lang.String[] usernames -
ReleventRange
public byte ReleventRange -
accessLevel
public java.lang.String accessLevel -
ip
public java.lang.String ip -
password
public java.lang.String password -
ping
public boolean ping -
ReleventPos
-
playerIDs
public short[] playerIDs -
players
-
connectArea
-
ChunkGridWidth
public int ChunkGridWidth -
loadedCells
-
playerDownloadServer
-
checksumState
-
checksumTime
public long checksumTime -
sendPulse
public boolean sendPulse -
awaitingCoopApprove
public boolean awaitingCoopApprove -
steamID
public long steamID -
ownerID
public long ownerID -
idStr
public java.lang.String idStr -
isCoopHost
public boolean isCoopHost -
vehicles
public final gnu.trove.set.hash.TShortHashSet vehicles -
chunkObjectState
public final gnu.trove.list.array.TShortArrayList chunkObjectState -
packetCounts
public final long[] packetCounts -
statistic
-
netStatistics
-
timerSendZombie
-
isNeighborPlayer
public boolean isNeighborPlayer
-
-
Constructor Details
-
UdpConnection
-
-
Method Details
-
getPeer
-
getConnectedGUID
public long getConnectedGUID() -
getServerIP
public java.lang.String getServerIP() -
startPacket
-
startPingPacket
-
RelevantTo
public boolean RelevantTo(float float1, float float2) -
getRelevantAndDistance
public float getRelevantAndDistance(float float1, float float2, float float3) -
RelevantToPlayerIndex
public boolean RelevantToPlayerIndex(int int1, float float1, float float2) -
RelevantTo
public boolean RelevantTo(float float1, float float2, float float3) -
cancelPacket
public void cancelPacket() -
endPacket
public void endPacket(int int1, int int2, byte byte1) -
endPacket
public void endPacket() -
endPacketImmediate
public void endPacketImmediate() -
endPacketUnordered
public void endPacketUnordered() -
endPacketUnreliable
public void endPacketUnreliable() -
endPacketSuperHighUnreliable
public void endPacketSuperHighUnreliable() -
endPingPacket
public void endPingPacket() -
close
public void close() -
disconnect
public void disconnect(java.lang.String string) -
getInetSocketAddress
public java.net.InetSocketAddress getInetSocketAddress() -
forceDisconnect
public void forceDisconnect() -
setFullyConnected
public void setFullyConnected() -
isFullyConnected
public boolean isFullyConnected() -
calcCountPlayersInRelevantPosition
public void calcCountPlayersInRelevantPosition() -
getStatistics
-
getAveragePing
public int getAveragePing() -
getLastPing
public int getLastPing() -
getLowestPing
public int getLowestPing() -
getMTUSize
public int getMTUSize()
-