Exemple #1
0
        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();
        }
Exemple #2
0
 public virtual void SortOrbitals()
 {
     SysPlanets.Sort((x, y) => x.OrbitalRadius.CompareTo(y.OrbitalRadius));
 }
Exemple #3
0
 public virtual bool IsAllEmptyOrbits()
 {
     return(SysPlanets.All(s => s.BaseType == Satellite.BasetypeEmpty));
 }
Exemple #4
0
 public virtual void AddSatellite(Satellite s)
 {
     SysPlanets.Add(s);
 }
Exemple #5
0
 public bool CleanZoneHasOrbits(CleanZone clear)
 {
     return(SysPlanets.Any(s => clear.WithinRange(s.OrbitalRadius)));
 }