def onBecomeNonPlayer(self): LOG_DEBUG('Account.onBecomeNonPlayer()') if not (hasattr(self, 'isPlayer') and self.isPlayer): return self.isPlayer = False chatManager.switchPlayerProxy(None) self.syncData.onAccountBecomeNonPlayer() self.inventory.onAccountBecomeNonPlayer() self.stats.onAccountBecomeNonPlayer() self.questProgress.onAccountBecomeNonPlayer() self.trader.onAccountBecomeNonPlayer() self.shop.onAccountBecomeNonPlayer() self.dossierCache.onAccountBecomeNonPlayer() self.battleResultsCache.onAccountBecomeNonPlayer() self.intUserSettings.onProxyBecomeNonPlayer() self.__cancelCommands() self.syncData.setAccount(None) self.inventory.setAccount(None) self.stats.setAccount(None) self.questProgress.setAccount(None) self.trader.setAccount(None) self.shop.setAccount(None) self.dossierCache.setAccount(None) self.battleResultsCache.setAccount(None) self.intUserSettings.setProxy(None, None) self.fort.clear() events.onAccountBecomeNonPlayer() del self.inputHandler
def onBecomeNonPlayer(self): LOG_DEBUG('Account.onBecomeNonPlayer()') if hasattr(self, 'isPlayer'): return self.isPlayer or None else: self.isPlayer = False chatManager.switchPlayerProxy(None) self.syncData.onAccountBecomeNonPlayer() self.inventory.onAccountBecomeNonPlayer() self.stats.onAccountBecomeNonPlayer() self.questProgress.onAccountBecomeNonPlayer() self.trader.onAccountBecomeNonPlayer() self.shop.onAccountBecomeNonPlayer() self.dossierCache.onAccountBecomeNonPlayer() self.battleResultsCache.onAccountBecomeNonPlayer() self.intUserSettings.onProxyBecomeNonPlayer() self.__cancelCommands() self.syncData.setAccount(None) self.inventory.setAccount(None) self.stats.setAccount(None) self.questProgress.setAccount(None) self.trader.setAccount(None) self.shop.setAccount(None) self.dossierCache.setAccount(None) self.battleResultsCache.setAccount(None) self.intUserSettings.setProxy(None, None) events.onAccountBecomeNonPlayer() del self.inputHandler return
def onBecomeNonPlayer(self): g_playerEvents.onAccountBecomeNonPlayer()