Exemplo n.º 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 VisibleObject(StarSystem starSystem, Trajectory trajectory)
 {
     this.StarSystem = starSystem;
     this.Trajectory = trajectory;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WormholeEndpoint"/> class.
 /// </summary>
 /// <param name="id">The id of the wormhole endpoint.</param>
 /// <param name="starSystem">The star system containing this endpoint.</param>
 /// <param name="trajectory">The trajectory of the endpoint.</param>
 public WormholeEndpoint(int id, StarSystem starSystem, Trajectory trajectory)
     : base(starSystem, trajectory)
 {
     this.Id          = id;
     this.Destination = null;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpaceObject"/> class.
 /// </summary>
 /// <param name="name">Name of the object</param>
 /// <param name="starSystem">Star system where the object is located.</param>
 /// <param name="trajectory">Trajectory of the object.</param>
 public SpaceObject(string name, StarSystem starSystem, Trajectory trajectory)
 {
     this.Name       = name;
     this.StarSystem = starSystem;
     this.Trajectory = trajectory;
 }