def calcTrophyTextListForOnePlayer(self, avId):
    retval = []
    av = base.cr.doId2do.get(avId)
    if (av and (avId in self.avIdList)):
        playerIndex = self.avIdList.index(avId)
        name = av.getName()
        for trophyIndex in xrange(len(self.trophyList[playerIndex])):
            wonTrophy = self.trophyList[playerIndex][trophyIndex]
            if wonTrophy:
                trophyName = TTLocalizer.GolfTrophyDescriptions[trophyIndex]
                text = (TTLocalizer.GolfAvReceivesTrophy % {'name': name, 'award': trophyName})
                retval.append(text)
    return retval
def calcTrophyTextListForOnePlayer(self, avId):
    retval = []
    av = base.cr.doId2do.get(avId)
    if (av and (avId in self.avIdList)):
        playerIndex = self.avIdList.index(avId)
        name = av.getName()
        for trophyIndex in xrange(len(self.trophyList[playerIndex])):
            wonTrophy = self.trophyList[playerIndex][trophyIndex]
            if wonTrophy:
                trophyName = TTLocalizer.GolfTrophyDescriptions[trophyIndex]
                text = (TTLocalizer.GolfAvReceivesTrophy % {'name': name, 'award': trophyName})
                retval.append(text)
    return retval