Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Planet[] planetsArray = new Planet[planets];
  2.  
  3. for(int i=0; i<planets; i++) {
  4. Planet currentPlanet = planetsArray[i];
  5. // planetsArray[i] = currentPlanet;
  6. currentPlanet.xxPos = in.readDouble();
  7. currentPlanet.yyPos = in.readDouble();
  8. currentPlanet.xxVel = in.readDouble();
  9. currentPlanet.yyVel = in.readDouble();
  10. currentPlanet.mass = in.readDouble();
  11. currentPlanet.imgFileName = in.readString();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement