Package org.pollux3d.shared

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

Related Classes of org.pollux3d.shared.PlanetarySystem

Copyright © 2018 www.massapicom. 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.