Examples of PlanetarySystem


Examples of org.pollux3d.shared.PlanetarySystem

    planets.add(venus);
    planets.add(earth);
    planets.add(mars);
    planets.add(jupiter);
   
    PlanetarySystem system = new PlanetarySystem();
    system.setId(1);
    system.setName("Sol");
    system.setSun(sun);
    system.setPosition(new Vector2f(100, 100));
    system.setPlanets(planets);
   
    String jsonString = mapper.writeValueAsString(system);
    System.out.println(jsonString);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.