def enter(self, requestStatus):
        self.fsm.enterInitialState()
        base.transitions.fadeOut(t=0)
        base.localAvatar.inventory.setRespectInvasions(0)
        base.cr.forbidCheesyEffects(1)
        self._telemLimiter = TLGatherAllAvs('MintInterior', RotationLimitToH)

        def commence(self = self):
            NametagGlobals.setMasterArrowsOn(1)
            self.fsm.request(requestStatus['how'], [requestStatus])
            base.playMusic(self.music, looping=1, volume=0.8)
            base.transitions.irisIn()
            mint = bboard.get(DistributedMint.DistributedMint.ReadyPost)
            self.loader.hood.spawnTitleText(mint.mintId, mint.floorNum)

        self.mintReadyWatcher = BulletinBoardWatcher.BulletinBoardWatcher('MintReady', DistributedMint.DistributedMint.ReadyPost, commence)
        self.mintDefeated = 0
        self.acceptOnce(DistributedMint.DistributedMint.WinEvent, self.handleMintWinEvent)
        if __debug__ and 0:
            self.accept('f10', lambda : messenger.send(DistributedMint.DistributedMint.WinEvent))
        self.confrontedBoss = 0

        def handleConfrontedBoss(self = self):
            self.confrontedBoss = 1

        self.acceptOnce('localToonConfrontedMintBoss', handleConfrontedBoss)
 def setRoomDoIds(self, roomDoIds):
     self.roomDoIds = roomDoIds
     self.roomWatcher = BulletinBoardWatcher.BulletinBoardWatcher(
         'roomWatcher-%s' % self.doId, [
             DistributedStageRoom.getStageRoomReadyPostName(doId)
             for doId in self.roomDoIds
         ], self.gotAllRooms)
    def enter(self, requestStatus):
        self.fsm.enterInitialState()
        base.transitions.fadeOut(t=0)
        base.localAvatar.inventory.setRespectInvasions(0)
        self._telemLimiter = TLGatherAllAvs('CountryClubInterior',
                                            RotationLimitToH)

        def commence(self=self):
            NametagGlobals.setWant2dNametags(True)
            self.fsm.request(requestStatus['how'], [requestStatus])
            base.playMusic(self.music, looping=1, volume=0.8)
            base.transitions.irisIn()
            CountryClub = bboard.get(
                DistributedCountryClub.DistributedCountryClub.ReadyPost)
            self.loader.hood.spawnTitleText(CountryClub.countryClubId,
                                            CountryClub.floorNum)

        self.CountryClubReadyWatcher = BulletinBoardWatcher.BulletinBoardWatcher(
            'CountryClubReady',
            DistributedCountryClub.DistributedCountryClub.ReadyPost, commence)
        self.CountryClubDefeated = 0
        self.acceptOnce(DistributedCountryClub.DistributedCountryClub.WinEvent,
                        self.handleCountryClubWinEvent)
        if __debug__ and 0:
            self.accept(
                'f10', lambda: messenger.send(DistributedCountryClub.
                                              DistributedCountryClub.WinEvent))
        self.confrontedBoss = 0

        def handleConfrontedBoss(self=self):
            self.confrontedBoss = 1

        self.acceptOnce('localToonConfrontedCountryClubBoss',
                        handleConfrontedBoss)
Exemplo n.º 4
0
    def enter(self, requestStatus):
        self.fsm.enterInitialState()
        base.transitions.fadeOut(t = 0)
        base.localAvatar.inventory.setRespectInvasions(0)
        base.cr.forbidCheesyEffects(1)
        
        def commence(self = self):
            NametagGlobals.setMasterArrowsOn(1)
            self.fsm.request(requestStatus['how'], [
                requestStatus])
            base.playMusic(self.music, looping = 1, volume = 0.80000000000000004)
            base.transitions.irisIn()
            stage = bboard.get(DistributedStage.DistributedStage.ReadyPost)
            self.loader.hood.spawnTitleText(stage.stageId)

        self.stageReadyWatcher = BulletinBoardWatcher.BulletinBoardWatcher('StageReady', DistributedStage.DistributedStage.ReadyPost, commence)
        self.stageDefeated = 0
        self.acceptOnce(DistributedStage.DistributedStage.WinEvent, self.handleStageWinEvent)
        if __debug__ and 0:
            self.accept('f10', lambda : messenger.send(DistributedStage.DistributedStage.WinEvent))
        
        self.confrontedBoss = 0
        
        def handleConfrontedBoss(self = self):
            self.confrontedBoss = 1

        self.acceptOnce('localToonConfrontedStageBoss', handleConfrontedBoss)
Exemplo n.º 5
0
    def enter(self, requestStatus):
        self.fsm.enterInitialState()
        base.transitions.fadeOut(t=0)

        # While we are here, we ignore invasion credit.
        base.localAvatar.inventory.setRespectInvasions(0)

        # Cheesy rendering effects are not allowed in CountryClubs.
        base.cr.forbidCheesyEffects(1)

        # wait until the CountryClub and any distributed entities have been
        # created before moving on
        def commence(self=self):
            # Turn on the little red arrows.
            NametagGlobals.setMasterArrowsOn(1)
            self.fsm.request(requestStatus["how"], [requestStatus])
            base.playMusic(self.music, looping=1, volume=0.8)
            base.transitions.irisIn()
            CountryClub = bboard.get(
                DistributedCountryClub.DistributedCountryClub.ReadyPost)
            self.loader.hood.spawnTitleText(CountryClub.countryClubId,
                                            CountryClub.floorNum)

        # as soon as the CountryClub is ready, proceed
        self.CountryClubReadyWatcher = BulletinBoardWatcher.BulletinBoardWatcher(
            'CountryClubReady',
            DistributedCountryClub.DistributedCountryClub.ReadyPost, commence)

        self.CountryClubDefeated = 0
        self.acceptOnce(DistributedCountryClub.DistributedCountryClub.WinEvent,
                        self.handleCountryClubWinEvent)
        if __debug__ and 0:
            # make F10 simulate someone else winning the CountryClub
            self.accept(
                'f10', lambda: messenger.send(DistributedCountryClub.
                                              DistributedCountryClub.WinEvent))

        self.confrontedBoss = 0

        def handleConfrontedBoss(self=self):
            self.confrontedBoss = 1

        self.acceptOnce('localToonConfrontedCountryClubBoss',
                        handleConfrontedBoss)