Exemple #1
0
    def __init__(self, listeningThread, gameState, sock):
        ClientServerConnection.__init__(self)
        self.listeningThread = listeningThread
        self.logic = StandardGameLogic()
        self.gameState = gameState

        self.setSocket(sock)
    def __init__(self, listeningThread, gameState, sock):
        ClientServerConnection.__init__(self)
        self.listeningThread = listeningThread
        self.logic = StandardGameLogic()
        self.gameState = gameState

        self.setSocket(sock)
Exemple #3
0
  def __init__(self, sock, listeningThread, msgHandler):
    ClientServerConnection.__init__(self)
    self.listeningThread = listeningThread
    self.msgHandler = msgHandler
    self.lastContact = self.timeProvider()
    self.latency = 0
    self.clientClockDrift = 0

    self.setSocket(sock)
Exemple #4
0
 def __init__(self, main):
   ClientServerConnection.__init__(self)
   self.main = main
   
   self._openConnection()
 def __init__(self, main, *args, **kwargs):
   ClientServerConnection.__init__(self, *args, **kwargs)
   self.main = main
   self.retryCount = 0
   
   self._openConnection()
Exemple #6
0
    def __init__(self, main):
        ClientServerConnection.__init__(self)
        self.main = main

        self._openConnection()
Exemple #7
0
  def __init__(self, sock, msgHandler):
    ClientServerConnection.__init__(self)
    self.msgHandler = msgHandler

    self.setSocket(sock)
Exemple #8
0
    def __init__(self, sock, msgHandler):
        ClientServerConnection.__init__(self)
        self.msgHandler = msgHandler

        self.setSocket(sock)