Ejemplo n.º 1
0
 def setPhase(self, aPhase):
     phase = self.getAliasPhase(aPhase)
     PhasedObject.setPhase(self, aPhase)
     self.__disableCollisions()
     self.__enableCollisions(phase)
     if phase == -1 and self.autoCleanup:
         self.cleanup()
     else:
         self.__oneTimeCollide()
Ejemplo n.º 2
0
 def setPhase(self, aPhase):
     """
     See PhasedObject.setPhase()
     """
     phase = self.getAliasPhase(aPhase)
     PhasedObject.setPhase(self, aPhase)
     self.__disableCollisions()
     self.__enableCollisions(phase)
     
     if phase == -1 and self.autoCleanup:
         self.cleanup()
     else:
         self.__oneTimeCollide()