def __init__(self, listeningThread, gameState, sock): ClientServerConnection.__init__(self) self.listeningThread = listeningThread self.logic = StandardGameLogic() self.gameState = gameState self.setSocket(sock)
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)
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()
def __init__(self, sock, msgHandler): ClientServerConnection.__init__(self) self.msgHandler = msgHandler self.setSocket(sock)