Class UdpConnection

java.lang.Object
zombie.core.raknet.UdpConnection

public class UdpConnection extends Object
  • Field Details

    • index

      public int index
    • allChatMuted

      public boolean allChatMuted
    • username

      public String username
    • usernames

      public String[] usernames
    • ReleventRange

      public byte ReleventRange
    • accessLevel

      public byte accessLevel
    • lastUnauthorizedPacket

      public long lastUnauthorizedPacket
    • ip

      public String ip
    • preferredInQueue

      public boolean preferredInQueue
    • wasInLoadingQueue

      public boolean wasInLoadingQueue
    • password

      public String password
    • ping

      public boolean ping
    • ReleventPos

      public Vector3[] ReleventPos
    • playerIDs

      public short[] playerIDs
    • players

      public IsoPlayer[] players
    • connectArea

      public Vector3[] connectArea
    • ChunkGridWidth

      public int ChunkGridWidth
    • loadedCells

      public ClientServerMap[] loadedCells
    • playerDownloadServer

      public PlayerDownloadServer playerDownloadServer
    • checksumState

      public UdpConnection.ChecksumState checksumState
    • checksumTime

      public long checksumTime
    • awaitingCoopApprove

      public boolean awaitingCoopApprove
    • steamID

      public long steamID
    • ownerID

      public long ownerID
    • idStr

      public String idStr
    • isCoopHost

      public boolean isCoopHost
    • maxPlayers

      public int maxPlayers
    • chunkObjectState

      public final gnu.trove.list.array.TShortArrayList chunkObjectState
    • statistic

    • netStatistics

      public ZNetStatistics netStatistics
    • pingHistory

      public final Deque<Long> pingHistory
    • validator

      public final PacketValidator validator
    • CONNECTION_GRACE_INTERVAL

      public static final long CONNECTION_GRACE_INTERVAL
      See Also:
    • connectionTimestamp

      public long connectionTimestamp
    • timerSendZombie

      public UpdateTimer timerSendZombie
    • isNeighborPlayer

      public boolean isNeighborPlayer
  • Constructor Details

    • UdpConnection

      public UdpConnection(UdpEngine engine, long connectedGUID, int index)
  • Method Details

    • getPeer

      public RakNetPeerInterface getPeer()
    • getConnectedGUID

      public long getConnectedGUID()
    • getServerIP

      public String getServerIP()
    • startPacket

      public ByteBufferWriter startPacket()
    • startPingPacket

      public ByteBufferWriter startPingPacket()
    • RelevantTo

      public boolean RelevantTo(float x, float y)
    • getRelevantAndDistance

      public float getRelevantAndDistance(float x, float y, float z)
    • RelevantToPlayerIndex

      public boolean RelevantToPlayerIndex(int n, float x, float y)
    • RelevantTo

      public boolean RelevantTo(float x, float y, float radius)
    • cancelPacket

      public void cancelPacket()
    • getBufferPosition

      public int getBufferPosition()
    • endPacket

      public void endPacket(int priority, int reliability, byte ordering)
    • endPacket

      public void endPacket()
    • endPacketImmediate

      public void endPacketImmediate()
    • endPacketUnordered

      public void endPacketUnordered()
    • endPacketUnreliable

      public void endPacketUnreliable()
    • endPacketSuperHighUnreliable

      public void endPacketSuperHighUnreliable()
    • endPingPacket

      public void endPingPacket()
    • getInetSocketAddress

      public InetSocketAddress getInetSocketAddress()
    • forceDisconnect

      public void forceDisconnect(String description)
    • setFullyConnected

      public void setFullyConnected()
    • setConnectionTimestamp

      public void setConnectionTimestamp()
    • isConnectionAttemptTimeout

      public boolean isConnectionAttemptTimeout()
    • isConnectionGraceIntervalTimeout

      public boolean isConnectionGraceIntervalTimeout()
    • isFullyConnected

      public boolean isFullyConnected()
    • calcCountPlayersInRelevantPosition

      public void calcCountPlayersInRelevantPosition()
    • getStatistics

      public ZNetStatistics getStatistics()
    • getAveragePing

      public int getAveragePing()
    • getLastPing

      public int getLastPing()
    • getLowestPing

      public int getLowestPing()
    • getMTUSize

      public int getMTUSize()
    • getConnectionType

      public UdpConnection.ConnectionType getConnectionType()
    • getDescription

      public String getDescription()
    • havePlayer

      public boolean havePlayer(IsoPlayer p)