def delete(self):
     if self.pigInterval:
         self.pigInterval.finish()
         self.pigInterval = None
     if self.pigModel:
         self.pigModel.removeNode()
     if self.fireEffect:
         self.fireEffect.stopLoop()
         self.fireEffect = None
     DistributedHolidayObject.delete(self)
     return
 def rejectInteraction(self):
     DistributedHolidayObject.rejectInteraction(self)
     holiday = None
     if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST):
         holiday = HolidayGlobals.FOUNDERSFEAST
     elif base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS):
         holiday = HolidayGlobals.MARDIGRAS
     
     holidayMsgs = PLocalizer.holidayMessages.get(holiday)
     if holidayMsgs:
         localAvatar.guiMgr.createWarning(holidayMsgs.get(HolidayGlobals.MSG_BONFIRE_STARTED))
    def rejectInteraction(self):
        DistributedHolidayObject.rejectInteraction(self)
        holiday = None
        if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST):
            holiday = HolidayGlobals.FOUNDERSFEAST
        elif base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS):
            holiday = HolidayGlobals.MARDIGRAS

        holidayMsgs = PLocalizer.holidayMessages.get(holiday)
        if holidayMsgs:
            localAvatar.guiMgr.createWarning(
                holidayMsgs.get(HolidayGlobals.MSG_BONFIRE_STARTED))
 def delete(self):
     if self.pigInterval:
         self.pigInterval.finish()
         self.pigInterval = None
     
     if self.pigModel:
         self.pigModel.removeNode()
     
     if self.fireEffect:
         self.fireEffect.stopLoop()
         self.fireEffect = None
     
     DistributedHolidayObject.delete(self)
 def __init__(self, cr):
     holiday = None
     proximityText = ''
     if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST):
         holiday = HolidayGlobals.FOUNDERSFEAST
     elif base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS):
         holiday = HolidayGlobals.MARDIGRAS
     
     holidayMsgs = PLocalizer.holidayMessages.get(holiday)
     if holidayMsgs:
         proximityText = holidayMsgs.get(HolidayGlobals.MSG_PIG)
     
     DistributedHolidayObject.__init__(self, cr, proximityText = proximityText)
     self.fireStarted = False
Пример #6
0
 def __init__(self, cr):
     holiday = None
     proximityText = ''
     if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST):
         holiday = HolidayGlobals.FOUNDERSFEAST
     elif base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS):
         holiday = HolidayGlobals.MARDIGRAS
     holidayMsgs = PLocalizer.holidayMessages.get(holiday)
     if holidayMsgs:
         proximityText = holidayMsgs.get(HolidayGlobals.MSG_PIG)
     DistributedHolidayObject.__init__(self,
                                       cr,
                                       proximityText=proximityText)
     self.fireStarted = False
     return
Пример #7
0
 def __init__(self, cr):
     holiday = None
     proximityText = ''
     if base.cr.newsManager.getHoliday(HolidayGlobals.FOUNDERSFEAST):
         holiday = HolidayGlobals.FOUNDERSFEAST
     else:
         if base.cr.newsManager.getHoliday(HolidayGlobals.MARDIGRAS):
             holiday = HolidayGlobals.MARDIGRAS
     holidayMsgs = PLocalizer.holidayMessages.get(holiday)
     if holidayMsgs:
         proximityText = holidayMsgs.get(HolidayGlobals.MSG_PIG)
     DistributedHolidayObject.__init__(self,
                                       cr,
                                       proximityText=proximityText)
     self.pigRoasting = False
     self.fireEffect = None
     self.pigInterval = None
     self.pigModel = None
     return
 def rejectInteraction(self):
     DistributedHolidayObject.rejectInteraction(self)
     localAvatar.guiMgr.createWarning(PLocalizer.NoPigRoasting)
 def acceptInteraction(self):
     DistributedHolidayObject.acceptInteraction(self)
     base.cr.interactionMgr.stop()
 def acceptInteraction(self):
     DistributedHolidayObject.acceptInteraction(self)
     localAvatar.b_setGameState('BeginFeast')
 def acceptInteraction(self):
     DistributedHolidayObject.acceptInteraction(self)
     localAvatar.b_setGameState('BeginFeast')
 def rejectInteraction(self):
     DistributedHolidayObject.rejectInteraction(self)
     localAvatar.guiMgr.createWarning(PLocalizer.NoPigRoasting)
 def acceptInteraction(self):
     DistributedHolidayObject.acceptInteraction(self)
     base.cr.interactionMgr.stop()