Exemplo n.º 1
0
 def enterEstate(self, requestStatus):
     self.notify.debug('enterEstate: requestStatus = %s' % requestStatus)
     ownerId = requestStatus.get('ownerId')
     if ownerId:
         self.estateOwnerId = ownerId
     zoneId = requestStatus['zoneId']
     self.notify.debug('enterEstate, ownerId = %s, zoneId = %s' % (self.estateOwnerId, zoneId))
     self.accept(self.estateDoneEvent, self.handleEstateDone)
     self.place = Estate.Estate(self, self.estateOwnerId, zoneId, self.fsm.getStateNamed('estate'), self.estateDoneEvent)
     base.cr.playGame.setPlace(self.place)
     self.place.load()
     self.place.enter(requestStatus)
     self.estateZoneId = zoneId
     
     newsManager = base.cr.newsManager
     if newsManager:
         holidayIds = base.cr.newsManager.getDecorationHolidayId()
         if ToontownGlobals.HALLOWEEN_COSTUMES in holidayIds or ToontownGlobals.SPOOKY_COSTUMES in holidayIds:
             self.plane.startWitch()
             
         else:
             self.plane.startAirplane()
             
     else:
         self.plane.startAirplane()
Exemplo n.º 2
0
 def enterEstate(self, requestStatus):
     self.notify.debug('enterEstate: requestStatus = %s' % requestStatus)
     ownerId = requestStatus.get('ownerId')
     if ownerId:
         self.estateOwnerId = ownerId
     zoneId = requestStatus['zoneId']
     self.notify.debug('enterEstate, ownerId = %s, zoneId = %s' % (self.estateOwnerId, zoneId))
     self.accept(self.estateDoneEvent, self.handleEstateDone)
     self.place = Estate.Estate(self, self.estateOwnerId, zoneId, self.fsm.getStateNamed('estate'), self.estateDoneEvent)
     base.cr.playGame.setPlace(self.place)
     self.place.load()
     self.place.enter(requestStatus)
     self.estateZoneId = zoneId