Изменил(а) на 'MyFirstUniverse/src/com/company/Main.java'
This commit is contained in:
parent
f1eeacdf03
commit
54ff357686
@ -1,42 +1,41 @@
|
|||||||
package com.company;
|
package com.company;
|
||||||
|
|
||||||
import com.company.cosmicbody.Planet;
|
import com.company.cosmicbody.Planet;
|
||||||
import com.company.cosmicbody.SolarSystem;
|
import com.company.cosmicbody.SolarSystem;
|
||||||
import com.company.cosmicbody.Star;
|
import com.company.cosmicbody.Star;
|
||||||
import com.company.universe.PlanetaryNebula;
|
import com.company.universe.PlanetaryNebula;
|
||||||
import com.company.universe.Universe;
|
import com.company.universe.Universe;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Universe myuniverse = new Universe();
|
Universe myuniverse = new Universe();
|
||||||
myuniverse.startUniverse();
|
|
||||||
|
PlanetaryNebula orion = new PlanetaryNebula("Orion",5, 18000,200,200,200);
|
||||||
PlanetaryNebula orion = new PlanetaryNebula("Orion",5, 18000,200,200,200);
|
PlanetaryNebula buba = new PlanetaryNebula("Buba", 8, 2300, 12,59,94);
|
||||||
PlanetaryNebula buba = new PlanetaryNebula("Buba", 8, 2300, 12,59,94);
|
PlanetaryNebula phonk = new PlanetaryNebula("Phonk", 20, 100000, 0,0,0);
|
||||||
PlanetaryNebula phonk = new PlanetaryNebula("Phonk", 20, 100000, 0,0,0);
|
|
||||||
|
Planet Mercury = new Planet("Mercury", 1333, 6083);
|
||||||
Planet Mercury = new Planet("Mercury", 1333, 6083);
|
Planet Venus = new Planet("Venus", 4867, 938);
|
||||||
Planet Venus = new Planet("Venus", 4867, 938);
|
Planet Earth = new Planet("Earth", 100000, 108321);
|
||||||
Planet Earth = new Planet("Earth", 100000, 108321);
|
Planet Mars = new Planet("Mars", 641, 16318);
|
||||||
Planet Mars = new Planet("Mars", 641, 16318);
|
Planet Jupiter = new Planet("Jupiter", 3, 71313);
|
||||||
Planet Jupiter = new Planet("Jupiter", 3, 71313);
|
Planet Saturn = new Planet("Saturn", 1000, 108408);
|
||||||
Planet Saturn = new Planet("Saturn", 1000, 108408);
|
Planet Uranus = new Planet("Uranus", 1000, 202156);
|
||||||
Planet Uranus = new Planet("Uranus", 1000, 202156);
|
Planet Neptune = new Planet("Neptune", 7050, 620654);
|
||||||
Planet Neptune = new Planet("Neptune", 7050, 620654);
|
|
||||||
|
Star sun = new Star("Sun", 1.392, 1.40927, 1499726.85);
|
||||||
Star sun = new Star("Sun", 1.392, 1.40927, 1499726.85);
|
SolarSystem solarSystem = new SolarSystem();
|
||||||
SolarSystem solarSystem = new SolarSystem();
|
solarSystem.addBody(Mercury);
|
||||||
solarSystem.addBody(Mercury);
|
solarSystem.addBody(Venus);
|
||||||
solarSystem.addBody(Venus);
|
solarSystem.addBody(Earth);
|
||||||
solarSystem.addBody(Earth);
|
solarSystem.addBody(Mars);
|
||||||
solarSystem.addBody(Mars);
|
solarSystem.addBody(Jupiter);
|
||||||
solarSystem.addBody(Jupiter);
|
solarSystem.addBody(Saturn);
|
||||||
solarSystem.addBody(Saturn);
|
solarSystem.addBody(Uranus);
|
||||||
solarSystem.addBody(Uranus);
|
solarSystem.addBody(Neptune);
|
||||||
solarSystem.addBody(Neptune);
|
|
||||||
|
|
||||||
|
myuniverse.stopUniverse();
|
||||||
myuniverse.stopUniverse();
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user