Class Constellation
- Namespace
- NominalSystems.Universe
- Assembly
- NominalSystems.Universe.dll
This class creates a container for the initialisation and storage of constellations of spacecraft objects.
public class Constellation : SimulationSystem
- Inheritance
-
Constellation
- Derived
- Inherited Members
Constructors
Constellation()
Default constructor to execute
public Constellation()
Fields
Spacecrafts
Stores an array of spacecraft
protected List<Spacecraft> Spacecrafts
Field Value
Properties
this[int]
overwrite the index operator for convenient access to elements of the container
public Spacecraft this[int index] { get; set; }
Parameters
index
intinteger index
Property Value
NumSpacecraft
Number of spacecraft in constellation
public int NumSpacecraft { get; }
Property Value
Methods
AddSpacecraft()
Add reference to spacecraft object to list of spacecraft in the constellation
public bool AddSpacecraft()
Returns
- bool
A success flag
CreateSpacecraft()
Adds a spacecraft to the system and attaches it to the simulation. This also links it up to the list and returns the created spacecraft.
public Spacecraft CreateSpacecraft()
Returns
- Spacecraft
The created spacecraft
GetSpacecraft(int)
Return the spacecraft at index
public Spacecraft GetSpacecraft(int index)
Parameters
index
intThe index of the spacecraft
Returns
- Spacecraft
The spacecraft reference