42 lines
1.5 KiB
Java
42 lines
1.5 KiB
Java
package com.company;
|
|
|
|
import com.company.cosmicbody.Planet;
|
|
import com.company.cosmicbody.SolarSystem;
|
|
import com.company.cosmicbody.Star;
|
|
import com.company.universe.PlanetaryNebula;
|
|
import com.company.universe.Universe;
|
|
|
|
public class Main {
|
|
|
|
public static void main(String[] args) {
|
|
Universe myuniverse = new Universe();
|
|
myuniverse.startUniverse();
|
|
|
|
PlanetaryNebula orion = new PlanetaryNebula("Orion",5, 18000,200,200,200);
|
|
PlanetaryNebula buba = new PlanetaryNebula("Buba", 8, 2300, 12,59,94);
|
|
PlanetaryNebula phonk = new PlanetaryNebula("Phonk", 20, 100000, 0,0,0);
|
|
|
|
Planet Mercury = new Planet("Mercury", 1333, 6083);
|
|
Planet Venus = new Planet("Venus", 4867, 938);
|
|
Planet Earth = new Planet("Earth", 100000, 108321);
|
|
Planet Mars = new Planet("Mars", 641, 16318);
|
|
Planet Jupiter = new Planet("Jupiter", 3, 71313);
|
|
Planet Saturn = new Planet("Saturn", 1000, 108408);
|
|
Planet Uranus = new Planet("Uranus", 1000, 202156);
|
|
Planet Neptune = new Planet("Neptune", 7050, 620654);
|
|
|
|
Star sun = new Star("Sun", 1.392, 1.40927, 1499726.85);
|
|
SolarSystem solarSystem = new SolarSystem();
|
|
solarSystem.addBody(Mercury);
|
|
solarSystem.addBody(Venus);
|
|
solarSystem.addBody(Earth);
|
|
solarSystem.addBody(Mars);
|
|
solarSystem.addBody(Jupiter);
|
|
solarSystem.addBody(Saturn);
|
|
solarSystem.addBody(Uranus);
|
|
solarSystem.addBody(Neptune);
|
|
|
|
|
|
myuniverse.stopUniverse();
|
|
}
|
|
} |