public virtual void PurgeSwallowedOrbits() { if (!(EvoLine.FindCurrentAgeGroup(StarAge) >= StarAgeLine.RetGiantbranch)) { throw new Exception("This star is not in supernova state or beyond."); } SysPlanets.RemoveAll(orbital => orbital.OrbitalRadius <= GetSwallowedSpace()); SortOrbitals(); }
public virtual void SortOrbitals() { SysPlanets.Sort((x, y) => x.OrbitalRadius.CompareTo(y.OrbitalRadius)); }
public virtual bool IsAllEmptyOrbits() { return(SysPlanets.All(s => s.BaseType == Satellite.BasetypeEmpty)); }
public virtual void AddSatellite(Satellite s) { SysPlanets.Add(s); }
public bool CleanZoneHasOrbits(CleanZone clear) { return(SysPlanets.Any(s => clear.WithinRange(s.OrbitalRadius))); }