@@ -0,0 +1,1450 @@
+package main;%0A %0Aimport entities.*;%0Aimport entities.planetaryBodies.CelestialBody;%0Aimport entities.ships.Ship;%0Aimport java.util.ArrayList;%0A %0A/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0A %0A/**%0A *%0A * @author Christopher Hittner%0A */%0Apublic class EntityList %7B%0A    private static ArrayList%3CCelestialBody%3E bodies = new ArrayList%3C%3E();%0A    private static ArrayList%3CShip%3E ships = new ArrayList%3C%3E();%0A     %0A    public static void addCelestialBody(CelestialBody c)%7B%0A        bodies.add(c);%0A    %7D%0A     %0A    public static void addShip(Ship s)%7B%0A        ships.add(s);%0A    %7D%0A     %0A    /**%0A     * Simulates gravity for every Entity that exists%0A     */%0A    public static void executeGravity()%7B%0A        //Simulates gravitation between ships and planets%0A        for(Entity e : ships)%7B%0A            for(Entity f : bodies)%7B%0A                if(!e.equals(f))%7B%0A                    e.gravitate(f);%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A     %0A    /**%0A     * Causes all Entity objects to move based on their velocities%0A     */%0A    public static void executeMovement()%7B%0A        for(Ship s : ships)%7B%0A            s.move();%0A        %7D%0A        for(CelestialBody c : bodies)%7B%0A            c.move();%0A        %7D%0A    %7D%0A     %0A    public static CelestialBody getCelestialBody(int index)%7B%0A        return bodies.get(index);%0A    %7D%0A     %0A    public static Ship getShip(int index)%7B%0A        return ships.get(index);%0A    %7D%0A     %0A     %0A%7D%0A%0A

Create EntityList.java