예제 #1
0
    def __init__(self, screenObj, msgpokerurl):
        UGAMEClientProtocol.__init__(self)
        self.screenObj = screenObj
        self.screenObj.executeCmd = self.executeCmd
        self.state = STATE_LOGIN
        self.avatar = Player()
        self.table = NoneTable()

        self.game_id = -1
        self.msgpokerurl = msgpokerurl
예제 #2
0
    def __init__(self, screenObj, msgpokerurl):
        UGAMEClientProtocol.__init__(self)
        self.screenObj = screenObj
        self.screenObj.executeCmd = self.executeCmd
        self.state = STATE_LOGIN
        self.avatar = Player()
        self.table = NoneTable()

        self.game_id = -1
        self.msgpokerurl = msgpokerurl
예제 #3
0
 def __init__(self):
     UGAMEClientProtocol.__init__(self)
     self.callbacks = {'current': {}, 'not_current': {}, 'outbound': {}}
     self.setCurrentGameId(None)
     self.pending_auth_request = False
     self.publish_packets = []
     self.input_packets = []
     self.publish_timer = None
     self.publish_time = 0
     self.publishPackets()
     self.lag = DEFAULT_LAGMAX
     self.lagmax_callbacks = []
     self.explain = PokerExplain()
예제 #4
0
 def __init__(self):
     UGAMEClientProtocol.__init__(self)
     self.callbacks = {
         'current': {},
         'not_current': {},
         'outbound': {}
         }
     self.setCurrentGameId(None)
     self.pending_auth_request = False
     self.publish_packets = []
     self.input_packets = []
     self.publish_timer = None
     self.publish_time = 0
     self.publishPackets()
     self.lag = DEFAULT_LAGMAX
     self.lagmax_callbacks = []
     self.explain = PokerExplain()
예제 #5
0
 def __init__(self):
     UGAMEClientProtocol.__init__(self)
     self.log = PokerClientProtocol.log.get_instance(
         self,
         refs=[('User', self, lambda client: client.user.serial
                if client.user else None)])
     self.callbacks = {'current': {}, 'not_current': {}, 'outbound': {}}
     self.setCurrentGameId(None)
     self.pending_auth_request = False
     self.publish_packets = []
     self.input_packets = []
     self.publish_timer = None
     self.publish_time = 0
     self.publishPackets()
     self.lag = DEFAULT_LAGMAX
     self.lagmax_callbacks = []
     self.explain = PokerExplain()
예제 #6
0
 def __init__(self):
     UGAMEClientProtocol.__init__(self)
     self.log = PokerClientProtocol.log.get_instance(self, refs=[
         ('User', self, lambda client: client.user.serial if client.user else None)
     ])
     self.callbacks = {
         'current': {},
         'not_current': {},
         'outbound': {}
         }
     self.setCurrentGameId(None)
     self.pending_auth_request = False
     self.publish_packets = []
     self.input_packets = []
     self.publish_timer = None
     self.publish_time = 0
     self.publishPackets()
     self.explain = PokerExplain()
     
     self._poll = False