package com.javarush.task.task25.task2515;

/**
 * Created by Alexey Vedensky on 07.04.2017.
 * MAIL: avedensky@gmail.com
 */
public abstract class BaseObject {
    private double x,y,radius;
    private boolean isAlive;

    public BaseObject(double x, double y, double radius) {
        this.x = x;
        this.y = y;
        this.radius = radius;
        this.isAlive = true;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public boolean isAlive() {
        return isAlive;
    }
}

@@ -806,11 +806,482 @@
 e;%0A    %7D
+%0A%0A    public void draw () %7B%0A    %7D%0A%0A    public void move () %7B%0A%0A    %7D%0A%0A    public void die () %7B%0A        isAlive = false;%0A    %7D%0A%0A    public boolean isIntersect(BaseObject o) %7B%0A        //%D0%B4%D0%B8%D1%81%D1%82%D0%B0%D0%BD%D1%86%D0%B8%D1%8F_%D0%BC%D0%B5%D0%B6%D0%B4%D1%83_%D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B0%D0%BC%D0%B8 %3C max (%D1%80%D0%B0%D0%B4%D0%B8%D1%83%D1%81_%D0%BF%D0%B5%D1%80%D0%B2%D0%BE%D0%B3%D0%BE_%D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B0, %D1%80%D0%B0%D0%B4%D0%B8%D1%83%D1%81_%D0%B2%D1%82%D0%BE%D1%80%D0%BE%D0%B3%D0%BE_%D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82%D0%B0).%0A%0A        double deltaX = x - o.x;%0A        double deltaY = y - o.y;%0A        double distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);%0A%0A        return distance %3C= Math.max (radius, o.getRadius());%0A    %7D
 %0A%7D%0A

Task 2515 6 has done