def unload(self):
     self.parentFSM.getStateNamed('playground').removeChild(self.fsm)
     del self.parentFSM
     del self.fsm
     if self.dialog:
         self.dialog.cleanup()
         self.dialog = None
     if self.deathAckBox:
         self.deathAckBox.cleanup()
         self.deathAckBox = None
     TTDialog.cleanupDialog('globalDialog')
     self.ignoreAll()
     Place.Place.unload(self)
Ejemplo n.º 2
0
 def unload(self):
     self.parentFSM.getStateNamed('playground').removeChild(self.fsm)
     del self.parentFSM
     del self.fsm
     if self.dialog:
         self.dialog.cleanup()
         self.dialog = None
     if self.deathAckBox:
         self.deathAckBox.cleanup()
         self.deathAckBox = None
     TTDialog.cleanupDialog('globalDialog')
     self.ignoreAll()
     Place.Place.unload(self)
     return
Ejemplo n.º 3
0
    def unload(self):
        assert (self.notify.debug("unload()"))

        self.parentFSM.getStateNamed("playground").removeChild(self.fsm)
        del self.parentFSM
        del self.fsm

        # remove any dfa dialogs
        if self.dialog:
            self.dialog.cleanup()
            self.dialog = None
        if self.deathAckBox:
            self.deathAckBox.cleanup()
            self.deathAckBox = None
        TTDialog.cleanupDialog("globalDialog")
        self.ignoreAll()

        # Call up the chain
        Place.Place.unload(self)
Ejemplo n.º 4
0
    def unload(self):
        self.parentFSM.getStateNamed('playground').removeChild(self.fsm)
        del self.parentFSM
        del self.fsm
        if self.dialog:
            self.dialog.cleanup()
            self.dialog = None
        if self.deathAckBox:
            self.deathAckBox.cleanup()
            self.deathAckBox = None
        if self.pumpkinList:
            for l in self.pumpkinList:
                l[0].cleanup()
                l[0].removeNode()
                l[5].finish()

        TTDialog.cleanupDialog('globalDialog')
        self.ignoreAll()
        Place.Place.unload(self)
        self.propNode.removeNode()
        return