def onClash(self, object, position): if self.isHard(): Clash(self.game, pos=position) object.hitSpeedup(self.getLength()/config.MAX_BAT_LENGTH) self.__playSound(position) Line.onClash(self, object ,position) return False
def onClash(self, object, position): Line.onClash(self, object, position) if isinstance(object, Ball): self.__playSound(position) return True