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}
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)
def __init__(self, commandID, args): super(_ReceivedCmdDecorator, self).__init__( args, getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name)) self._commandID = commandID self.__isSilentMode = False
def __init__(self, name, args=None): super(_OutCmdDecorator, self).__init__( args or messageArgs(), getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name)) self._name = name
def __init__(self, commandID, args): super(_ReceivedCmdDecorator, self).__init__(args, getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name)) self._commandID = commandID
def __init__(self, name, args = None): super(_OutCmdDecorator, self).__init__(args or messageArgs(), getClientID4BattleChannel(BATTLE_CHANNEL.TEAM.name)) self._name = name
def getID(self): return channel_num_gen.getClientID4BattleChannel(self.getName())