Beispiel #1
0
        public void Print()
        {
            System.Console.WriteLine("Hubble type: " + HubbleTypeStrings[(int)GalaxyHubbleType]);
            System.Console.WriteLine("Redshift: " + Redshift.ToString());
            System.Console.WriteLine("Total mass: " + TotalMass.ToString() + "kg");
            System.Console.WriteLine("Stellar mass fraction: " + MassFraction.ToString());
            System.Console.WriteLine("Stellar mass content: " + GetStellarMass().ToString() + "kg");
            System.Console.WriteLine(Satellites.Count.ToString() + " satellite(s)\n");

            int SatelliteCount = 1;

            foreach (Galaxy Satellite in Satellites)
            {
                System.Console.WriteLine("Satellite " + SatelliteCount.ToString() + " data:\n");
                Satellite.Print();
            }
        }