def __createQuery(self, presence): query = PresenceQuery(presence) item = g_preDefinedHosts.byName(connectionManager.serverUserName) if item.url: query.setGameServerHost(item.url) if self.__scope == MESSENGER_SCOPE.BATTLE and presence == PRESENCE.DND: query.setArenaGuiLabel(getArenaGuiTypeLabel()) return query
def __createQuery(self, presence): query = PresenceQuery(presence) item = g_preDefinedHosts.byName(connectionManager.serverUserName) if item.url: query.setGameServerHost(item.url) if self.__scope == MESSENGER_SCOPE.BATTLE and presence == PRESENCE.DND: query.setArenaGuiLabel( self.sessionProvider.arenaVisitor.gui.getLabel()) return query
def __createQuery(self, presence): query = PresenceQuery(presence) item = g_preDefinedHosts.byName(connectionManager.serverUserName) if item.url: query.setGameServerHost(item.url) if self.__scope == MESSENGER_SCOPE.BATTLE and presence == PRESENCE.DND: from gui.battle_control import g_sessionProvider query.setArenaGuiLabel(g_sessionProvider.arenaVisitor.gui.getLabel()) return query
def __createQuery(self, presence): from gui.battle_control.arena_info import getArenaGuiTypeLabel query = PresenceQuery(presence) item = g_preDefinedHosts.byName(connectionManager.serverUserName) if item.url: query.setGameServerHost(item.url) if self.__scope == MESSENGER_SCOPE.BATTLE and presence == PRESENCE.DND: query.setArenaGuiLabel(getArenaGuiTypeLabel()) return query
def __createQuery(self, presence): query = PresenceQuery(presence) item = g_preDefinedHosts.byName(self.connectionMgr.serverUserName) if item.url: query.setGameServerHost(item.url) if presence == PRESENCE.DND: if self.__scope == MESSENGER_SCOPE.BATTLE: query.setArenaGuiLabel(self.sessionProvider.arenaVisitor.gui.getLabel()) elif self.__isInBootcamp: query.setArenaGuiLabel(ARENA_GUI_TYPE_LABEL.LABELS[ARENA_GUI_TYPE.BOOTCAMP]) return query