def __init__(self, size=15, fontname="monospace", text="", color=pygame.Color("black"), position=(0, 0)): Drawable.__init__(self, None, None, position) self._size = size self._fontname = fontname self._text = text self._color = color self._position = position
def __init__(self, init_x, init_y, mass, radius, borders): """ Initialize Disc object :param init_x: int/float - x position of Disc :param init_y: int/float - y position of Disc :param mass: mass of Disc :param radius: radius of Disc :param borders: pitch's borders - list [(pitch x_min, pitch x_max), (pitch y_min, pitch y_max)] :return: """ PhysicsObject.__init__(self, init_x, init_y, mass, radius, borders) self._init_x = init_x self._init_y = init_y image = self.load_image(radius) Drawable.__init__(self, image, None, Vector(init_x, init_y))
def __init__(self, player1, player2): Drawable.__init__(self, None, None, None) self._player1 = player1 self._player2 = player2