Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Planet[] planetsArray = new Planet[planets];
- for(int i=0; i<planets; i++) {
- Planet currentPlanet = planetsArray[i];
- // planetsArray[i] = currentPlanet;
- currentPlanet.xxPos = in.readDouble();
- currentPlanet.yyPos = in.readDouble();
- currentPlanet.xxVel = in.readDouble();
- currentPlanet.yyVel = in.readDouble();
- currentPlanet.mass = in.readDouble();
- currentPlanet.imgFileName = in.readString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement