public void AttachToPlanet(Planet planet) { this.DetachFromPlanet(); this.Planet = planet; this.PlanetarySystem = planet.PlanetarySystem; }
public Planet(Planet planet) : this(planet.Center, planet.Mass, planet.Radius, planet.Velocity, planet.Name) { }
// Methods public void DetachFromPlanet() { this._planet = null; }