package com.javarush.task.task25.task2515;

import java.util.ArrayList;

/**
 * Created by Alexey Vedensky on 07.04.2017.
 * MAIL: avedensky@gmail.com
 */
public class Space {
    private int width, height;
    private SpaceShip ship;
    private ArrayList<Ufo> ufos;
    private ArrayList<Rocket> rockets;
    private ArrayList<Bomb> bombs;


    public Space(int width, int height) {
        this.width = width;
        this.height = height;
        this.ufos = new ArrayList<>();
        this.rockets = new ArrayList<>();
        this.bombs = new ArrayList<>();
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public SpaceShip getShip() {
        return ship;
    }

    public void setShip(SpaceShip ship) {
        this.ship = ship;
    }

    public ArrayList<Ufo> getUfos() {
        return ufos;
    }

    public ArrayList<Rocket> getRockets() {
        return rockets;
    }

    public ArrayList<Bomb> getBombs() {
        return bombs;
    }

    public static void main(String[] args) {

    }
}

@@ -1019,32 +1019,139 @@
 n bombs;%0A    %7D%0A%0A
+    public void run () %7B%0A%0A    %7D%0A%0A    public void draw () %7B%0A%0A    %7D%0A%0A    public void sleep(int ms) %7B%0A%0A    %7D%0A%0A
     public stati

Task 2515 4 has done