Exemplo n.º 1
0
def isBattleChat():
    squadChannelClientID = getClientID4Prebattle(PREBATTLE_TYPE.SQUAD)
    teamChannelClientID = getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name)
    commonChannelClientID = getClientID4BattleChannel(BATTLE_CHANNEL.COMMON.name)
    team = MessengerEntry.g_instance.gui.channelsCtrl.getController(teamChannelClientID)
    squad = MessengerEntry.g_instance.gui.channelsCtrl.getController(squadChannelClientID)
    common = MessengerEntry.g_instance.gui.channelsCtrl.getController(commonChannelClientID)
    return {'team': team, 'common': common, 'squad': squad}
Exemplo n.º 2
0
    def __init__(self):
        super(BWBattleChannelFindCriteria, self).__init__()
        self.__ids = []
        for item in BATTLE_CHANNEL.ALL:
            clientID = channel_num_gen.getClientID4BattleChannel(item.name)
            if clientID:
                self.__ids.append(clientID)

        clientID = channel_num_gen.getClientID4Prebattle(PREBATTLE_TYPE.SQUAD)
        if clientID:
            self.__ids.append(clientID)
Exemplo n.º 3
0
    def __init__(self):
        super(BWBattleChannelFindCriteria, self).__init__()
        self.__ids = []
        for item in BATTLE_CHANNEL.ALL:
            clientID = channel_num_gen.getClientID4BattleChannel(item.name)
            if clientID:
                self.__ids.append(clientID)

        clientID = channel_num_gen.getClientID4Prebattle(PREBATTLE_TYPE.SQUAD)
        if clientID:
            self.__ids.append(clientID)
Exemplo n.º 4
0
 def __init__(self, commandID, args):
     super(_ReceivedCmdDecorator, self).__init__(
         args, getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name))
     self._commandID = commandID
     self.__isSilentMode = False
Exemplo n.º 5
0
 def __init__(self, name, args=None):
     super(_OutCmdDecorator, self).__init__(
         args or messageArgs(),
         getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name))
     self._name = name
Exemplo n.º 6
0
 def __init__(self, commandID, args):
     super(_ReceivedCmdDecorator, self).__init__(args, getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name))
     self._commandID = commandID
Exemplo n.º 7
0
 def __init__(self, name, args = None):
     super(_OutCmdDecorator, self).__init__(args or messageArgs(), getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name))
     self._name = name
Exemplo n.º 8
0
 def getID(self):
     return channel_num_gen.getClientID4BattleChannel(self.getName())
Exemplo n.º 9
0
 def getID(self):
     return channel_num_gen.getClientID4BattleChannel(self.getName())