def createManagers(self):
     self.timeManager = TimeManagerAI(self)
     self.timeManager.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
     self.magicWordManager = MagicWordManagerAI(self)
     self.magicWordManager.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
     self.newsManager = NewsManagerAI(self)
     self.newsManager.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
     self.safeZoneManager = SafeZoneManagerAI(self)
     self.safeZoneManager.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
     self.tutorialManager = TutorialManagerAI(self)
     #self.tutorialManager.generateWithRequired(2)
     self.friendManager = FriendManagerAI(self)
     self.friendManager.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
     self.questManager = QuestManagerAI(self)
     #self.banManager = BanManagerAI.BanManagerAI(self)
     #self.achievementsManager = AchievementsManagerAI(self)
     self.suitInvasionManager = SuitInvasionManagerAI(self)
     self.trophyMgr = DistributedTrophyMgrAI(self)
     self.trophyMgr.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
     #self.cogSuitMgr = CogSuitManagerAI.CogSuitManagerAI(self)
     #self.promotionMgr = PromotionManagerAI.PromotionManagerAI(self)
     self.cogPageManager = CogPageManagerAI.CogPageManagerAI()
     #self.bankManager = BankManagerAI.BankManagerAI(self)
     self.holidayManager = HolidayManagerAI(self)
     #if self.wantFishing:
     #    self.fishManager = FishManagerAI(self)
     if self.wantHousing:
         self.estateManager = EstateManagerAI(self)
         self.estateManager.generateWithRequired(OTP_ZONE_ID_OLD_QUIET_ZONE)
Exemplo n.º 2
0
 def createManagers(self):
     self.timeManager = TimeManagerAI(self)
     self.timeManager.generateWithRequired(2)
     self.magicWordManager = MagicWordManagerAI(self)
     self.magicWordManager.generateWithRequired(2)
     self.newsManager = NewsManagerAI(self)
     self.newsManager.generateWithRequired(2)
     self.safeZoneManager = SafeZoneManagerAI(self)
     self.safeZoneManager.generateWithRequired(2)
     self.tutorialManager = TutorialManagerAI(self)
     self.tutorialManager.generateWithRequired(2)
     self.friendManager = FriendManagerAI(self)
     self.friendManager.generateWithRequired(2)
     self.questManager = QuestManagerAI(self)
     self.banManager = BanManagerAI.BanManagerAI(self)
     self.achievementsManager = AchievementsManagerAI(self)
     self.certManager = CertificateManagerAI(self)
     self.suitInvasionManager = SuitInvasionManagerAI(self)
     self.trophyMgr = DistributedTrophyMgrAI(self)
     self.trophyMgr.generateWithRequired(2)
     self.cogSuitMgr = CogSuitManagerAI.CogSuitManagerAI(self)
     self.promotionMgr = PromotionManagerAI.PromotionManagerAI(self)
     self.experienceMgr = ExperienceRewardManagerAI.ExperienceRewardManagerAI(self)
     self.cogPageManager = CogPageManagerAI.CogPageManagerAI()
     self.sillyMeterMgr = DistributedSillyMeterMgrAI.DistributedSillyMeterMgrAI(self)
     self.sillyMeterMgr.generateWithRequired(2)
     self.hydrantZeroMgr = DistributedHydrantZeroMgrAI.DistributedHydrantZeroMgrAI(self)
     self.hydrantZeroMgr.generateWithRequired(2)
     self.mailboxZeroMgr = DistributedMailboxZeroMgrAI.DistributedMailboxZeroMgrAI(self)
     self.mailboxZeroMgr.generateWithRequired(2)
     self.trashcanZeroMgr = DistributedTrashcanZeroMgrAI.DistributedTrashcanZeroMgrAI(self)
     self.trashcanZeroMgr.generateWithRequired(2)
     self.dialogueManager = DialogueManagerAI(self)
     self.bingoHolidayMgr = BingoHolidayMgrAI(self, ToontownGlobals.FISH_BINGO_NIGHT)
     self.bingoWeekendMgr = BingoWeekendMgrAI(self, ToontownGlobals.SILLY_SATURDAY_BINGO)
     self.trolleyHolidayMgr = TrolleyHolidayMgrAI(self, ToontownGlobals.TROLLEY_HOLIDAY)
     self.trolleyWeekendMgr = TrolleyWeekendMgrAI(self, ToontownGlobals.TROLLEY_WEEKEND)
     self.holidayManager = HolidayManagerAI(self)
     if self.wantFishing:
         self.fishManager = FishManagerAI(self)
     if self.wantHousing:
         self.estateManager = EstateManagerAI(self)
         self.estateManager.generateWithRequired(2)
         self.catalogManager = CatalogManagerAI(self)
         self.catalogManager.generateWithRequired(2)
         self.deliveryManager = self.generateGlobalObject(OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER, 'DistributedDeliveryManager')
         self.mailManager = self.generateGlobalObject(OTP_DO_ID_TOONTOWN_MAIL_MANAGER, 'DistributedMailManager')
     if self.wantPets:
         self.petMgr = PetManagerAI(self)
     if self.wantParties:
         self.partyManager = DistributedPartyManagerAI(self)
         self.partyManager.generateWithRequired(2)
         self.globalPartyMgr = self.generateGlobalObject(OTP_DO_ID_GLOBAL_PARTY_MANAGER, 'GlobalPartyManager')
     self.codeRedemptionMgr = TTCodeRedemptionMgrAI(self)
     self.codeRedemptionMgr.generateWithRequired(2)
     self.chatAgent = simbase.air.generateGlobalObject(OTP_DO_ID_CHAT_MANAGER, 'ChatAgent')
    def createManagers(self):
        self.timeManager = TimeManagerAI(self)
        self.timeManager.generateWithRequired(2)
        self.magicWordManager = MagicWordManagerAI(self)
        self.magicWordManager.generateWithRequired(2)
        self.newsManager = NewsManagerAI(self)
        self.newsManager.generateWithRequired(2)

        self.holidayManager = HolidayManagerAI(self)

        self.safeZoneManager = SafeZoneManagerAI(self)
        self.safeZoneManager.generateWithRequired(2)
        self.tutorialManager = TutorialManagerAI(self)
        self.tutorialManager.generateWithRequired(2)
        self.friendManager = FriendManagerAI(self)
        self.friendManager.generateWithRequired(2)
        self.questManager = QuestManagerAI(self)
        self.banManager = BanManagerAI.BanManagerAI(self)
        self.suitInvasionManager = SuitInvasionManagerAI(self)
        self.trophyMgr = DistributedTrophyMgrAI(self)
        self.trophyMgr.generateWithRequired(2)
        self.cogSuitMgr = CogSuitManagerAI.CogSuitManagerAI(self)
        self.promotionMgr = PromotionManagerAI.PromotionManagerAI(self)
        self.cogPageManager = CogPageManagerAI.CogPageManagerAI()

        if self.wantFishing:
            self.fishManager = FishManagerAI(self)
        if self.wantHousing:
            self.estateManager = EstateManagerAI(self)
            self.estateManager.generateWithRequired(2)
            self.catalogManager = CatalogManagerAI(self)
            self.catalogManager.generateWithRequired(2)
            self.deliveryManager = self.generateGlobalObject(
                OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER,
                'DistributedDeliveryManager')
        if self.wantPets:
            self.petMgr = PetManagerAI(self)

        if self.wantParties:
            self.partyManager = DistributedPartyManagerAI(self)
            self.partyManager.generateWithRequired(2)
            # Setup view of global ub party manager
            self.globalPartyMgr = self.generateGlobalObject(
                OTP_DO_ID_GLOBAL_PARTY_MANAGER, 'GlobalPartyManager')

        self.wantLeaderBoardMgr = True
        if self.wantLeaderBoardMgr:
            self.leaderBoardMgr = DistributedLeaderBoardManagerAI(self)

        # Need work
        self.codeRedemptionManager = TTCodeRedemptionMgrAI(self)
        self.codeRedemptionManager.generateWithRequired(2)
 def createManagers(self):
     self.timeManager = TimeManagerAI(self)
     self.timeManager.generateWithRequired(2)
     self.magicWordManager = MagicWordManagerAI(self)
     self.magicWordManager.generateWithRequired(2)
     self.newsManager = NewsManagerAI(self)
     self.newsManager.generateWithRequired(2)
     self.safeZoneManager = SafeZoneManagerAI(self)
     self.safeZoneManager.generateWithRequired(2)
     self.topToonsMgr = TopToonsManagerAI(self)
     #self.topToonsMgr.generateWithRequired(2)
     self.tutorialManager = TutorialManagerAI(self)
     self.tutorialManager.generateWithRequired(2)
     self.friendManager = FriendManagerAI(self)
     self.friendManager.generateWithRequired(2)
     self.questManager = QuestManagerAI(self)
     self.banManager = BanManagerAI.BanManagerAI(self)
     self.suitInvasionManager = SuitInvasionManagerAI(self)
     self.blackCatMgr = DistributedBlackCatMgrAI(self)
     self.blackCatMgr.generateWithRequired(2)
     self.reportMgr = DistributedReportMgrAI(self)
     self.reportMgr.generateWithRequired(2)
     self.trophyMgr = DistributedTrophyMgrAI(self)
     self.trophyMgr.generateWithRequired(2)
     self.cogSuitMgr = CogSuitManagerAI.CogSuitManagerAI()
     self.promotionMgr = PromotionManagerAI.PromotionManagerAI(self)
     self.cogPageManager = CogPageManagerAI.CogPageManagerAI()
     self.codeRedemptionMgr = TTCodeRedemptionMgrAI(self)
     self.codeRedemptionMgr.generateWithRequired(2)
     self.buildingQueryMgr = DistributedBuildingQueryMgrAI(self)
     self.buildingQueryMgr.generateWithRequired(2)
     if self.wantTopToons:
         self.topToonsMgr = TopToonsManagerAI(self)
     if self.wantKarts:
         self.leaderboardMgr = LeaderboardMgrAI(self)
     if self.wantFishing:
         self.fishManager = FishManagerAI(self)
     if self.wantHousing:
         self.estateManager = EstateManagerAI(self)
         self.estateManager.generateWithRequired(2)
         self.catalogManager = CatalogManagerAI(self)
         self.catalogManager.generateWithRequired(2)
     if self.wantPets:
         self.petMgr = PetManagerAI(self)
     if self.wantParties:
         self.partyManager = DistributedPartyManagerAI(self)
         self.partyManager.generateWithRequired(2)
         self.globalPartyMgr = self.generateGlobalObject(
             OTP_DO_ID_GLOBAL_PARTY_MANAGER, 'GlobalPartyManager')
Exemplo n.º 5
0
 def createManagers(self):
     self.timeManager = TimeManagerAI(self)
     self.timeManager.generateWithRequired(2)
     self.magicWordManager = MagicWordManagerAI(self)
     self.magicWordManager.generateWithRequired(2)
     self.newsManager = NewsManagerAI(self)
     self.newsManager.generateWithRequired(2)
     self.holidayManager = HolidayManagerAI(self)
     self.safeZoneManager = SafeZoneManagerAI(self)
     self.safeZoneManager.generateWithRequired(2)
     self.tutorialManager = TutorialManagerAI(self)
     self.tutorialManager.generateWithRequired(2)
     self.friendManager = FriendManagerAI(self)
     self.friendManager.generateWithRequired(2)
     self.questManager = QuestManagerAI(self)
     self.banManager = BanManagerAI.BanManagerAI(self)
     self.achievementsManager = AchievementsManagerAI(self)
     self.suitInvasionManager = SuitInvasionManagerAI(self)
     self.trophyMgr = DistributedTrophyMgrAI(self)
     self.trophyMgr.generateWithRequired(2)
     self.cogSuitMgr = CogSuitManagerAI.CogSuitManagerAI(self)
     self.promotionMgr = PromotionManagerAI.PromotionManagerAI(self)
     self.cogPageManager = CogPageManagerAI.CogPageManagerAI()
     self.bankManager = BankManagerAI.BankManagerAI(self)
     if self.wantFishing:
         self.fishManager = FishManagerAI(self)
     if self.wantHousing:
         self.estateManager = EstateManagerAI(self)
         self.estateManager.generateWithRequired(2)
         self.catalogManager = CatalogManagerAI(self)
         self.catalogManager.generateWithRequired(2)
         self.popularItemManager = PopularItemManagerAI(self)
         self.deliveryManager = self.generateGlobalObject(
             OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER,
             'DistributedDeliveryManager')
     if self.wantPets:
         self.petMgr = PetManagerAI(self)
     if self.wantParties:
         self.partyManager = DistributedPartyManagerAI(self)
         self.partyManager.generateWithRequired(2)
         self.globalPartyMgr = self.generateGlobalObject(
             OTP_DO_ID_GLOBAL_PARTY_MANAGER, 'GlobalPartyManager')
Exemplo n.º 6
0
    def createManagers(self):
        self.timeManager = TimeManagerAI(self)
        self.timeManager.generateWithRequired(2)
        self.magicWordManager = MagicWordManagerAI(self)
        self.magicWordManager.generateWithRequired(2)
        self.newsManager = NewsManagerAI(self)
        self.newsManager.generateWithRequired(2)
        self.safeZoneManager = SafeZoneManagerAI(self)
        self.safeZoneManager.generateWithRequired(2)
        self.tutorialManager = TutorialManagerAI(self)
        self.tutorialManager.generateWithRequired(2)
        self.friendManager = FriendManagerAI(self)
        self.friendManager.generateWithRequired(2)
        self.questManager = QuestManagerAI(self)
        self.banManager = BanManagerAI.BanManagerAI(self)
        self.achievementsManager = AchievementsManagerAI(self)
        self.suitInvasionManager = SuitInvasionManagerAI(self)
        self.trophyMgr = DistributedTrophyMgrAI(self)
        self.trophyMgr.generateWithRequired(2)
        self.cogSuitMgr = CogSuitManagerAI.CogSuitManagerAI(self)
        self.promotionMgr = PromotionManagerAI.PromotionManagerAI(self)
        self.experienceMgr = ExperienceRewardManagerAI.ExperienceRewardManagerAI(
            self)
        self.cogPageManager = CogPageManagerAI.CogPageManagerAI()
        self.sillyMeterMgr = DistributedSillyMeterMgrAI.DistributedSillyMeterMgrAI(
            self)
        self.sillyMeterMgr.generateWithRequired(2)
        self.hydrantZeroMgr = DistributedHydrantZeroMgrAI.DistributedHydrantZeroMgrAI(
            self)
        self.hydrantZeroMgr.generateWithRequired(2)
        self.mailboxZeroMgr = DistributedMailboxZeroMgrAI.DistributedMailboxZeroMgrAI(
            self)
        self.mailboxZeroMgr.generateWithRequired(2)
        self.trashcanZeroMgr = DistributedTrashcanZeroMgrAI.DistributedTrashcanZeroMgrAI(
            self)
        self.trashcanZeroMgr.generateWithRequired(2)
        self.dialogueManager = DialogueManagerAI(self)
        self.holidayManager = HolidayManagerAI(self)

        if self.wantFishing:
            self.fishManager = FishManagerAI(self)

        if self.wantHousing:
            self.estateManager = EstateManagerAI(self)
            self.estateManager.generateWithRequired(2)
            self.catalogManager = CatalogManagerAI(self)
            self.catalogManager.generateWithRequired(2)
            self.popularItemManager = PopularItemManagerAI(self)
            self.deliveryManager = self.generateGlobalObject(
                OTP_DO_ID_TOONTOWN_DELIVERY_MANAGER,
                'DistributedDeliveryManager')
            self.mailManager = self.generateGlobalObject(
                OTP_DO_ID_TOONTOWN_MAIL_MANAGER, 'DistributedMailManager')

        if self.wantPets:
            self.petMgr = PetManagerAI(self)

        if self.wantParties:
            self.partyManager = DistributedPartyManagerAI(self)
            self.partyManager.generateWithRequired(2)
            self.globalPartyMgr = self.generateGlobalObject(
                OTP_DO_ID_GLOBAL_PARTY_MANAGER, 'GlobalPartyManager')

        if self.wantCharityScreen:
            self.charityCounter = CharityScreenAI(self)
            self.charityCounter.generateWithRequired(2)
            self.charityCounter.start()

        self.codeRedemptionMgr = simbase.air.generateGlobalObject(
            OTP_DO_ID_TOONTOWN_CODE_REDEMPTION_MANAGER, 'TTCodeRedemptionMgr')
        self.chatAgent = simbase.air.generateGlobalObject(
            OTP_DO_ID_CHAT_MANAGER, 'ChatAgent')