コード例 #1
0
 def getBoardingTrack(self, toon, seatIndex, wantToonRotation):
     self.boardingGroupShow = BoardingGroupShow.BoardingGroupShow(toon)
     track, trackType = self.boardingGroupShow.getBoardingTrack(
         self.getElevatorModel(),
         self.getOffsetPosWrtToonParent(toon, seatIndex),
         self.getOffsetPosWrtRender(seatIndex), wantToonRotation)
     return (track, trackType)
コード例 #2
0
 def startGoToShow(self, elevatorId):
     self.notify.debug('Starting Go Show.')
     localAvatar.boardingParty.forceCleanupInviterPanels()
     elevatorName = self.__getDestName(elevatorId)
     if self.groupPanel:
         self.groupPanel.disableQuitButton()
     goButtonShow = BoardingGroupShow.BoardingGroupShow(localAvatar)
     place = base.cr.playGame.getPlace()
     if place:
         place.setState('stopped')
     self.goToShowTrack = goButtonShow.getGoButtonShow(elevatorName)
     self.goToShowTrack.start()
コード例 #3
0
 def startGoToPreShow(self, elevatorId):
     self.notify.debug('Starting Go Pre Show.')
     place = base.cr.playGame.getPlace()
     if place:
         place.setState('stopped')
     goButtonPreShow = BoardingGroupShow.BoardingGroupShow(localAvatar)
     goButtonPreShowTrack = goButtonPreShow.getGoButtonPreShow()
     if self.groupPanel:
         self.groupPanel.changeGoToCancel()
         self.groupPanel.disableQuitButton()
         self.groupPanel.disableDestinationScrolledList()
     self.finishGoToPreShowTrack()
     self.goToPreShowTrack = Sequence()
     self.goToPreShowTrack.append(goButtonPreShowTrack)
     self.goToPreShowTrack.append(Func(self.requestGoToSecondTime, elevatorId))
     self.goToPreShowTrack.start()
コード例 #4
0
 def getBoardingTrack(self, toon, seatIndex, wantToonRotation):
     '''
     Return an interval of the toon teleporting in front of the elevator.
     Note: The offset (second parameter passed to BoardingGroupShow.getBoardingTrack
     is to where the toon will teleport/run to. This offset has to be
     calculated wrt the parent of the toon.
     Eg: For the CogKart the offset should be computed wrt to the cogKart because the
         toon is parented to the cogKart.
         For the other elevators the offset should be computer wrt to render because the
         toon is parented to render.
     '''
     self.boardingGroupShow = BoardingGroupShow.BoardingGroupShow(toon)
     track, trackType = self.boardingGroupShow.getBoardingTrack(
         self.getElevatorModel(),
         self.getOffsetPosWrtToonParent(toon, seatIndex),
         self.getOffsetPosWrtRender(seatIndex), wantToonRotation)
     return (track, trackType)