Exemplo n.º 1
0
 def _handleUnexpectedToonExit(self, toonId):
     """
     An avatar bailed out because he lost his connection or quit
     unexpectedly.
     """
     DistributedPartyTrampolineActivityAI.notify.debug(
         "_handleUnexpectedToonExit( toonId=%s )" % toonId)
     self.activityFSM.request("Idle")
     DistributedPartyActivityAI._handleUnexpectedToonExit(self, toonId)
    def _handleUnexpectedToonExit(self, toonId):
        """
        Flying toon client exits, request cleanup.
        """
        if self.flyingToons.has_key(toonId):
            self.notify.warning("Avatar %s has exited unexpectedly." % toonId)

            # cannon_movie_force_exit will clean up the avatar on the client
            # and eventually call setLanded to complete the cleanup on AI
            self.d_setMovie(PartyGlobals.CANNON_MOVIE_FORCE_EXIT, toonId)
            self.__cleanupFlyingToon(toonId)
            DistributedPartyActivityAI._handleUnexpectedToonExit(self, toonId)
Exemplo n.º 3
0
 def _handleUnexpectedToonExit(self, toonId):
     """
     An avatar bailed out because he lost his connection or quit
     unexpectedly.
     """
     DistributedPartyCatchActivityAI.notify.debug(
         "_handleUnexpectedToonExit( toonId=%s )" % toonId)
     DistributedPartyActivityAI._handleUnexpectedToonExit(self, toonId)
     if toonId in self._playerIds:
         self._playerIds.remove(toonId)
     if self.toonIdsToScores.has_key(toonId):
         del self.toonIdsToScores[toonId]
     # number of players changed, start a new generation of drops
     self._setUpNextGenScheduleTask(globalClock.getRealTime() -
                                    self.activityStartTime)