Esempio n. 1
0
    def _getClanMembers(self):
        clanMembers = []
        for member in g_clanCache.clanMembers:
            intTotalMining, intWeekMining = self.fortCtrl.getFort().getPlayerContributions(member.getID())
            role = self._getClanRole(member)
            roleID = self.CLAN_MEMBER_ROLES.index(member.getClanRole())
            vo = vo_converters.makeSimpleClanListRenderVO(member, intTotalMining, intWeekMining, role, roleID)
            clanMembers.append(vo)

        return clanMembers
    def _getClanMembers(self):
        clanMembers = []
        for member in g_clanCache.clanMembers:
            intTotalMining, intWeekMining = self.fortCtrl.getFort().getPlayerContributions(member.getID())
            role = self._getClanRole(member)
            roleID = self.CLAN_MEMBER_ROLES.index(member.getClanRole())
            vo = vo_converters.makeSimpleClanListRenderVO(member, intTotalMining, intWeekMining, role, roleID)
            clanMembers.append(vo)

        return clanMembers
    def __makeRosters(self):
        result = []
        for dbID in self.__fixedPlayers:
            player = findFirst(lambda m: m.getID() == dbID, g_clanCache.clanMembers)
            if player is not None:
                intTotalMining, intWeekMining = self.fortCtrl.getFort().getPlayerContributions(dbID)
                role = text_styles.standard(i18n.makeString(getClanRoleString(player.getClanRole())))
                roleID = self.CLAN_MEMBER_ROLES.index(player.getClanRole())
                vo = vo_converters.makeSimpleClanListRenderVO(player, intTotalMining, intWeekMining, role, roleID)
                result.append(vo)

        return result
Esempio n. 4
0
    def __makeRosters(self):
        result = []
        for dbID in self.__fixedPlayers:
            player = findFirst(lambda m: m.getID() == dbID, g_clanCache.clanMembers)
            if player is not None:
                intTotalMining, intWeekMining = self.fortCtrl.getFort().getPlayerContributions(dbID)
                role = text_styles.standard(i18n.makeString(getClanRoleString(player.getClanRole())))
                roleID = self.CLAN_MEMBER_ROLES.index(player.getClanRole())
                vo = vo_converters.makeSimpleClanListRenderVO(player, intTotalMining, intWeekMining, role, roleID)
                result.append(vo)

        return result