def handleEnterGameArea(self, collEntry = None):
     self.setupMinimap()
     if self.minimap and localAvatar.getMinimapObject():
         self.minimap.addObject(localAvatar.getMinimapObject())
         localAvatar.guiMgr.setMinimap(self.minimap)
     
     DistributedGameArea.handleEnterGameArea(self, collEntry)
 def handleChildLeave(self, childObj, zoneId):
     DistributedGameArea.handleChildLeave(self, childObj, zoneId)
     DistributedCartesianGrid.handleChildLeave(self, childObj, zoneId)
     if childObj.isLocal():
         localAvatar.guiMgr.clearMinimap(self.minimap)
         self.destroyMinimap()
         self.fadeOutSoundAndMusic()
 def __init__(self, cr):
     DistributedGameArea.__init__(self, cr)
     DistributedCartesianGrid.__init__(self, cr)
     MappableGrid.__init__(self)
     self.intervals = []
     self.fadeInTrack = None
     self.autoFadeIn = True
     self.musicName = None
 def disable(self):
     self.stopCustomEffects()
     self.builder.pauseSFX()
     self.unloadConnectors()
     if self.fadeInTrack:
         self.fadeInTrack.pause()
     
     self.fadeInTrack = None
     self.ignoreAll()
     DistributedGameArea.disable(self)
     DistributedCartesianGrid.disable(self)
     del self.closeSfx
Пример #5
0
 def handleChildArrive(self, childObj, zoneId):
     DistributedGameArea.handleChildArrive(self, childObj, zoneId)
     DistributedCartesianGrid.handleChildArrive(self, childObj, zoneId)
     if childObj.isLocal():
         self.updateAvReturnLocation(childObj)
         self.builder.checkForHolidayObjects()
         self.requestSoundAndMusic()
         if not self.footstepSound:
             localAvatar.setAreaFootstep('Wood')
         self.setupMinimap()
         if self.minimap and localAvatar.getMinimapObject():
             self.minimap.addObject(localAvatar.getMinimapObject())
             localAvatar.guiMgr.setMinimap(self.minimap)
Пример #6
0
 def handleChildArrive(self, childObj, zoneId):
     DistributedGameArea.handleChildArrive(self, childObj, zoneId)
     DistributedCartesianGrid.handleChildArrive(self, childObj, zoneId)
     if childObj.isLocal():
         self.updateAvReturnLocation(childObj)
         self.builder.checkForHolidayObjects()
         self.requestSoundAndMusic()
         if not self.footstepSound:
             localAvatar.setAreaFootstep('Wood')
         
         self.setupMinimap()
         if self.minimap and localAvatar.getMinimapObject():
             self.minimap.addObject(localAvatar.getMinimapObject())
             localAvatar.guiMgr.setMinimap(self.minimap)
Пример #7
0
    def delete(self):
        del self.coll
        self.geom.removeNode()
        if self.modelPath != 'models/buildings/navy_jail_interior':
            self.handleExitGameArea(None)
        self.fadeOutSoundAndMusic()
        self.disableFloors()
        for anim in self.intervals:
            if anim:
                anim.pause()
                del anim

        self.intervals = []
        DistributedGameArea.delete(self)
        DistributedCartesianGrid.delete(self)
        return
Пример #8
0
 def delete(self):
     del self.coll
     self.geom.removeNode()
     if self.modelPath != 'models/buildings/navy_jail_interior':
         self.handleExitGameArea(None)
     
     self.fadeOutSoundAndMusic()
     self.disableFloors()
     for anim in self.intervals:
         if anim:
             anim.pause()
             del anim
             continue
     
     self.intervals = []
     DistributedGameArea.delete(self)
     DistributedCartesianGrid.delete(self)
 def announceGenerate(self):
     DistributedGameArea.announceGenerate(self)
     DistributedCartesianGrid.announceGenerate(self)
     self.getParentObj().setWorldGrid(self)
     self.loadModel()
     for obj in self.geom.findAllMatches('**/=ignore-lighting'):
         obj.setLightOff(1000)
     
     doorPlanes = self.geom.findAllMatches('**/door_collision_planar_*;+s')
     doorPlanes.stash()
     base.worldCreator.registerSpecialNodes(self, self.uniqueId)
     self.builder.loadObjects()
     self.enableFloors()
     self.initBlockers(self)
     self.startCustomEffects()
     self.builder.resumeSFX()
     self.closeSfx = loadSfx(SoundGlobals.SFX_DOOR_SLAM)
 def handleOffStage(self, av = None):
     self.stash()
     DistributedGameArea.handleOffStage(self)
     DistributedCartesianGrid.handleOffStage(self)
 def handleOnStage(self):
     self.unstash()
     self.loadConnectors()
     DistributedGameArea.handleOnStage(self)
     DistributedCartesianGrid.handleOnStage(self)
 def unloadConnectors(self):
     if 'interior' in self.modelPath and 'fortCharles_zero' in self.modelPath and 'kingshead_zero' in self.modelPath or 'pir_m_bld_int_tavernA_oneDoor' in self.modelPath:
         return None
     
     DistributedGameArea.unloadConnectors(self)
 def handleExitGameArea(self, collEntry):
     if collEntry:
         return None
     
     DistributedGameArea.handleExitGameArea(self, collEntry)
 def setLocation(self, parentId, zoneId):
     DistributedGameArea.setLocation(self, parentId, zoneId)
Пример #15
0
 def handleOffStage(self, av=None):
     self.stash()
     DistributedGameArea.handleOffStage(self)