parameters: (self)
docstring: Get the list of connected players. Populates self._connectedPlayers.
docstring_summary: Get the list of connected players. Populates self._connectedPlayers.
docstring_tokens: Get the list of connected players . Populates self . _connectedPlayers .
function: def getConnectedPlayers(self):
      """ Get the list of connected players. Populates self._connectedPlayers. """
      self._gotLook = False
      self.send('(look)')
      partial = ['ok','look']
      def f(body):
        self._gotLook = True
        del self._connectedPlayers[:]
        for i in range(4, len(body)):
          _,team,num = body[i][0][:3]
          if (team, num) not in self._connectedPlayers:
            self._connectedPlayers.append((team,num))
      self.registerMsgHandler(f,*partial,quiet=True)
      while not self._gotLook:
        self.listenAndProcess()
        self.send('(look)')
      self.ignoreMsg(*partial,quiet=True)
function_tokens: def getConnectedPlayers ( self ) : self . _gotLook = False self . send ( '(look)' ) partial = [ 'ok' , 'look' ] def f ( body ) : self . _gotLook = True del self . _connectedPlayers [ : ] for i in range ( 4 , len ( body ) ) : _ , team , num = body [ i ] [ 0 ] [ : 3 ] if ( team , num ) not in self . _connectedPlayers : self . _connectedPlayers . append ( ( team , num ) ) self . registerMsgHandler ( f , * partial , quiet = True ) while not self . _gotLook : self . listenAndProcess ( ) self . send ( '(look)' ) self . ignoreMsg ( * partial , quiet = True )