Class Planet

java.lang.Object
velo.ladaalpha.fields.astronomy.SpaceObject
velo.ladaalpha.fields.astronomy.Planet
Direct Known Subclasses:
Earth

public class Planet extends SpaceObject
The Class Planet.
  • Constructor Details

    • Planet

      public Planet(long radius, double tilt, Star star_orbitted, PlanetTypes type, int moons_n, int rings_n, Atmosphere_Density atmosphere_density, int max_temp_c, int min_temp_c, long distance_to_orbitted_star, int time_to_orbit_star_years, CelestialObjectComposition composition, long mass)
      Instantiates a new planet.
      Parameters:
      radius - the radius
      tilt - the tilt
      star_orbitted - the star orbitted
      type - the type
      moons_n - the moons n
      rings_n - the rings n
      atmosphere_density - the atmosphere density
      max_temp_c - the max temp c
      min_temp_c - the min temp c
      distance_to_orbitted_star - the distance to orbitted star
      time_to_orbit_star_years - the time to orbit star years
      composition - the composition
      mass - the mass
  • Method Details

    • getRadius

      public long getRadius()
      Gets the radius.
      Returns:
      the radius
    • setRadius

      public void setRadius(long radius)
      Sets the radius.
      Parameters:
      radius - the radius to set
    • getTilt

      public double getTilt()
      Gets the tilt.
      Returns:
      the tilt
    • setTilt

      public void setTilt(double tilt)
      Sets the tilt.
      Parameters:
      tilt - the tilt to set
    • getStar_orbitted

      public Star getStar_orbitted()
      Gets the star orbitted.
      Returns:
      the star_orbitted
    • setStar_orbitted

      public void setStar_orbitted(Star star_orbitted)
      Sets the star orbitted.
      Parameters:
      star_orbitted - the star_orbitted to set
    • getType

      public PlanetTypes getType()
      Gets the type.
      Returns:
      the type
    • setType

      public void setType(PlanetTypes type)
      Sets the type.
      Parameters:
      type - the type to set
    • getMoons_n

      public int getMoons_n()
      Gets the moons n.
      Returns:
      the moons_n
    • setMoons_n

      public void setMoons_n(int moons_n)
      Sets the moons n.
      Parameters:
      moons_n - the moons_n to set
    • getRings_n

      public int getRings_n()
      Gets the rings n.
      Returns:
      the rings_n
    • setRings_n

      public void setRings_n(int rings_n)
      Sets the rings n.
      Parameters:
      rings_n - the rings_n to set
    • getAtmosphere_density

      public Atmosphere_Density getAtmosphere_density()
      Gets the atmosphere density.
      Returns:
      the atmosphere_density
    • setAtmosphere_density

      public void setAtmosphere_density(Atmosphere_Density atmosphere_density)
      Sets the atmosphere density.
      Parameters:
      atmosphere_density - the atmosphere_density to set
    • getMax_temp_c

      public int getMax_temp_c()
      Gets the max temp c.
      Returns:
      the max_temp_c
    • setMax_temp_c

      public void setMax_temp_c(int max_temp_c)
      Sets the max temp c.
      Parameters:
      max_temp_c - the max_temp_c to set
    • getMin_temp_c

      public int getMin_temp_c()
      Gets the min temp c.
      Returns:
      the min_temp_c
    • setMin_temp_c

      public void setMin_temp_c(int min_temp_c)
      Sets the min temp c.
      Parameters:
      min_temp_c - the min_temp_c to set
    • getDistance_to_orbitted_star

      public long getDistance_to_orbitted_star()
      Gets the distance to orbitted star.
      Returns:
      the distance_to_orbitted_star
    • setDistance_to_orbitted_star

      public void setDistance_to_orbitted_star(long distance_to_orbitted_star)
      Sets the distance to orbitted star.
      Parameters:
      distance_to_orbitted_star - the distance_to_orbitted_star to set
    • getTime_to_orbit_star_years

      public int getTime_to_orbit_star_years()
      Gets the time to orbit star years.
      Returns:
      the time_to_orbit_star_years
    • setTime_to_orbit_star_years

      public void setTime_to_orbit_star_years(int time_to_orbit_star_years)
      Sets the time to orbit star years.
      Parameters:
      time_to_orbit_star_years - the time_to_orbit_star_years to set
    • getComposition

      public CelestialObjectComposition getComposition()
      Gets the composition.
      Returns:
      the composition
    • setComposition

      public void setComposition(CelestialObjectComposition composition)
      Sets the composition.
      Parameters:
      composition - the composition to set