public void RemoveAsteroid(Asteroid asteroid) { this._asteroids.Remove(asteroid); asteroid.PlanetarySystem = null; }
public Asteroid(Asteroid asteroid) : this(asteroid.Center, asteroid.Mass, asteroid.Radius, asteroid.Velocity, asteroid.Name) { }
public void AddAsteroid(Asteroid asteroid) { this._asteroids.Add(asteroid); asteroid.PlanetarySystem = this; }