Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpaceObject"/> class.
 /// </summary>
 /// <param name="starSystem">Star system where the object is located.</param>
 /// <param name="trajectory">Trajectory of the object.</param>
 public CelestialObject(string name, string altName, CelestialObjectInfo details, StarSystem starSystem, Trajectory trajectory)
     : base(starSystem, trajectory)
 {
     this.Name            = name;
     this.AlternativeName = altName;
     this.Details         = details;
 }
Exemple #2
0
 /// <summary>
 /// Constructor creates fully determined Star.
 /// There's no need to edit the star later.
 /// </summary>
 /// <param name="name">Program name of the star</param>
 /// <param name="starSystem">Star system where the star belongs to.</param>
 /// <param name="trajectory">Trajectory of the star.</param>
 public Star(string name, string altName, CelestialObjectInfo details, StarSystem starSystem, Trajectory trajectory) : base(name, altName, details, starSystem, trajectory)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VisibleObject"/> class.
 /// </summary>
 /// <param name="name">Name of the object.</param>
 public CelestialObject() : base()
 {
     this.Name            = "";
     this.AlternativeName = "";
     this.Details         = new CelestialObjectInfo();
 }