Пример #1
0
 /// <summary>
 /// A full constructor.
 /// </summary>
 /// <param name="age">The age of the star</param>
 /// <param name="parent">The parent this star belongs to. (IS_PRIMARY for a primary star)</param>
 /// <param name="self">The ID of this star</param>
 /// <param name="order">Where the star is in the sequence</param>
 /// <param name="baseName">The name of the system</param>
 public Star(double age, int parent, int self, int order, string baseName)
     : base(parent, self)
 {
     this.starAge       = age;
     this.orbitalRadius = 0.0;
     this.gasGiantFlag  = Star.GASGIANT_NONE; //set to none automatically. We will set it correctly later.
     this.orderID       = order;
     this.name          = Star.genGenericName(baseName, order);
     this.evoLine       = new StarAgeLine();
     this.sysPlanets    = new List <Satellite>();
 }