BlueshiftScenario
This class helps starships determine when they're in interstellar space.
Light-year unit of measurement. Abbreviated "Ly."
Gigameter unit of measurement. Abbreviate "Gm."
Megameter unit of measurement. Abbreviated "Mm."
Shared instance of the helper.
When in intersteller space, vessels can go much faster. This multiplier tells us how much faster we can go. For comparison, Mass Effect Andromeda's Tempest can cruise at 4745 times light speed, or 13 light-years per day.
Flag to indicate whether or not to auto-circularize the orbit.
It can cost resources to auto-circularize a ship after warp.
How much circularizationResource does it cost per metric ton of ship to circularize its orbit.
Flag to indicate whether or not Space Anomalies are enabled.
Flag to indicate whether or not Jumpgate anomalies are enabled.
The jumpgate startup sequence is destructive. Stay clear!
Adds the jumpgate anomaly to the network.
anomaly: The WBISpaceAnomaly to add.
Adds the jumpgate to the network.
vesselID: A string containing the ID of the jumpgate vessel.
networkID: A string containing the ID of the jumpgate network.
Returns the list of possible destination gates that are in range of the specified origin point.
networkID: A string containing the network ID.
originPoint: A Vector3d containing the origin point to check for gates in range.
maxJumpRange: A double containing the maximum jump range, measured in light-years. Set to -1 to ignore max jump range.
A List of Vessel containing the vessels in the network that are in range, or null if no network or vessels in range could be found.
Returns the anomaly matching the desired vesselID.
vesselID: A string containing the vessel ID.
A WBISpaceAnomaly if the anomaly can be found, or null if not.
Attempts to locate the destination vessel based on the ID supplied.
vesselID: A string containing the vessel ID
A Vessel if one can be found, null if not.
Determines thevessel's spatial location.
vessel: The Vessel to check.
A WBISpatialLocations withe spatial location.
Determines whether or not the celestial body is a star.
body: The body to test.
true if the body is a star, false if not.
Determines whether or not the vessel is in interstellar space.
vessel:
Determines whether or not the vessel is in space.
vessel: The Vessel to check.
true if the vessel is in space, false if not.
Finds every last planet in every star system.
A List of CelestialBody
Finds all the stars in the game.
A Listcontaining all the stars in the game. Celestial bodies that are on the celestialBlacklist are ignored.
Returns a list of all the planets in the game.
A Listcontaining all the planets in the game. Celestial bodies that are on the celestialBlacklist are ignored.
Finds the last planet in the supplied star system.
star: A Celestial Body that is the star to check.
A CelestialBody representing the last planet in the star system (if any)
Determines whether or not the celestial body has planets orbiting it.
celestialBody: The CelestialBody to check for planets.
true if the celestialBody has orbiting planets, false if not.
Calculates the distance and units of measurement to the vessel's target (if any).
vessel: The Vessel to check for targets.
units: A string representing the units of measurement computed for the distance.
targetName: A string representing the name of the vessel's target.
A double containing the distance. If there is no target then the distance is 0.