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()
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()