C# Class kOS.Suffixed.VesselTarget

Inheritance: Orbitable, IKOSTargetable
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Private Properties

Свойство Type Description
GetAllTaggedParts kOS.Suffixed.ListValue
GetHorizontalSrfSpeed ScalarValue
GetModulesInGroup ListValue
GetModulesNamed ListValue
GetPartsDubbed ListValue
GetPartsInGroup ListValue
GetPartsNamed ListValue
GetPartsTagged ListValue
GetPartsTitled ListValue
GetRawPartsNamed IEnumerable
GetRawPartsTagged IEnumerable
GetRawPartsTitled IEnumerable
InitializeSuffixes void
RawAngularVelFromRelative Vector
RenameVessel void
RetypeVessel void
VesselTarget System

Méthodes publiques

Méthode Description
Dump ( ) : Dump
Equals ( object obj ) : bool
GetAllParts ( ) : kOS.Suffixed.ListValue
GetAvailableThrustAt ( ScalarValue atmPressure ) : ScalarValue
GetControlPart ( ) : global::Part
GetCrew ( ) : kOS.Suffixed.ListValue
GetCrewCapacity ( ) : ScalarValue
GetDistance ( ) : ScalarValue
GetFlightControl ( ) : FlightControl
GetGuid ( ) : Guid
GetHashCode ( ) : int
GetMaxThrustAt ( ScalarValue atmPressure ) : ScalarValue
GetMessages ( ) : MessageQueueStructure
GetName ( ) : StringValue
GetNorthVector ( ) : Vector
GetOrbitAtUT ( double desiredUT ) : Orbit

Calculate which orbit patch contains the timestamp given.

GetPosition ( ) : Vector
GetPositionAtUT ( TimeSpan timeStamp ) : Vector

Calculates the position of this vessel at some future universal timestamp, taking into account all currently predicted SOI transition patches, and also assuming that all the planned maneuver nodes will actually be executed precisely as planned. Note that this cannot "see" into the future any farther than the KSP orbit patches setting allows for.

GetSuffix ( string suffixName ) : ISuffixResult
GetUpVector ( ) : Vector
GetVelocities ( ) : OrbitableVelocity
GetVelocitiesAtUT ( TimeSpan timeStamp ) : OrbitableVelocity

Calculates the velocities of this vessel at some future universal timestamp, taking into account all currently predicted SOI transition patches, and also assuming that all the planned maneuver nodes will actually be executed precisely as planned. Note that this cannot "see" into the future any farther than the KSP orbit patches setting allows for.

LoadDump ( Dump dump ) : void
ThrowIfNotCPUVessel ( ) : void
ToString ( ) : string
VesselTarget ( SharedObjects shared ) : System
VesselTarget ( Vessel target, SharedObjects shared ) : System
operator ( ) : bool

Méthodes protégées

Méthode Description
Equals ( VesselTarget other ) : bool

Private Methods

Méthode Description
GetAllTaggedParts ( ) : kOS.Suffixed.ListValue

Get all the parts which have at least SOME non-default name:

GetHorizontalSrfSpeed ( ) : ScalarValue
GetModulesInGroup ( StringValue groupName ) : ListValue
GetModulesNamed ( StringValue modName ) : ListValue
GetPartsDubbed ( StringValue searchTerm ) : ListValue
GetPartsInGroup ( StringValue groupName ) : ListValue
GetPartsNamed ( StringValue partName ) : ListValue
GetPartsTagged ( StringValue tagName ) : ListValue
GetPartsTitled ( StringValue partTitle ) : ListValue
GetRawPartsNamed ( string partName ) : IEnumerable
GetRawPartsTagged ( string tagName ) : IEnumerable
GetRawPartsTitled ( string partTitle ) : IEnumerable
InitializeSuffixes ( ) : void
RawAngularVelFromRelative ( Vector3 angularVelFromKSP ) : Vector

Annoyingly, KSP returns vessel.angularVelociy in a frame of reference relative to the ship facing instead of the universe facing. This would be wonderful if that was their philosophy everywhere, but it's not - its just a weird exception for this one case. This transforms it back into raw universe axes again:

RenameVessel ( StringValue value ) : void
RetypeVessel ( StringValue value ) : void
VesselTarget ( ) : System

Method Details

Dump() public méthode

public Dump ( ) : Dump
Résultat Dump

Equals() protected méthode

protected Equals ( VesselTarget other ) : bool
other VesselTarget
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetAllParts() public méthode

public GetAllParts ( ) : kOS.Suffixed.ListValue
Résultat kOS.Suffixed.ListValue

GetAvailableThrustAt() public méthode

public GetAvailableThrustAt ( ScalarValue atmPressure ) : ScalarValue
atmPressure kOS.Safe.Encapsulation.ScalarValue
Résultat kOS.Safe.Encapsulation.ScalarValue

GetControlPart() public méthode

public GetControlPart ( ) : global::Part
Résultat global::Part

GetCrew() public méthode

public GetCrew ( ) : kOS.Suffixed.ListValue
Résultat kOS.Suffixed.ListValue

GetCrewCapacity() public méthode

public GetCrewCapacity ( ) : ScalarValue
Résultat kOS.Safe.Encapsulation.ScalarValue

GetDistance() public méthode

public GetDistance ( ) : ScalarValue
Résultat kOS.Safe.Encapsulation.ScalarValue

GetFlightControl() public méthode

public GetFlightControl ( ) : FlightControl
Résultat FlightControl

GetGuid() public méthode

public GetGuid ( ) : Guid
Résultat Guid

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetMaxThrustAt() public méthode

public GetMaxThrustAt ( ScalarValue atmPressure ) : ScalarValue
atmPressure ScalarValue
Résultat ScalarValue

GetMessages() public méthode

public GetMessages ( ) : MessageQueueStructure
Résultat MessageQueueStructure

GetName() public méthode

public GetName ( ) : StringValue
Résultat StringValue

GetNorthVector() public méthode

public GetNorthVector ( ) : Vector
Résultat Vector

GetOrbitAtUT() public méthode

Calculate which orbit patch contains the timestamp given.
public GetOrbitAtUT ( double desiredUT ) : Orbit
desiredUT double The timestamp to look for
Résultat Orbit

GetPosition() public méthode

public GetPosition ( ) : Vector
Résultat Vector

GetPositionAtUT() public méthode

Calculates the position of this vessel at some future universal timestamp, taking into account all currently predicted SOI transition patches, and also assuming that all the planned maneuver nodes will actually be executed precisely as planned. Note that this cannot "see" into the future any farther than the KSP orbit patches setting allows for.
public GetPositionAtUT ( TimeSpan timeStamp ) : Vector
timeStamp TimeSpan The time to predict for. Although the intention is to /// predict for a future time, it could be used to predict for a past time.
Résultat Vector

GetSuffix() public méthode

public GetSuffix ( string suffixName ) : ISuffixResult
suffixName string
Résultat ISuffixResult

GetUpVector() public méthode

public GetUpVector ( ) : Vector
Résultat Vector

GetVelocities() public méthode

public GetVelocities ( ) : OrbitableVelocity
Résultat OrbitableVelocity

GetVelocitiesAtUT() public méthode

Calculates the velocities of this vessel at some future universal timestamp, taking into account all currently predicted SOI transition patches, and also assuming that all the planned maneuver nodes will actually be executed precisely as planned. Note that this cannot "see" into the future any farther than the KSP orbit patches setting allows for.
public GetVelocitiesAtUT ( TimeSpan timeStamp ) : OrbitableVelocity
timeStamp TimeSpan The time to predict for. Although the intention is to /// predict for a future time, it could be used to predict for a past time.
Résultat OrbitableVelocity

LoadDump() public méthode

public LoadDump ( Dump dump ) : void
dump Dump
Résultat void

ThrowIfNotCPUVessel() public méthode

public ThrowIfNotCPUVessel ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

VesselTarget() public méthode

public VesselTarget ( SharedObjects shared ) : System
shared SharedObjects
Résultat System

VesselTarget() public méthode

public VesselTarget ( Vessel target, SharedObjects shared ) : System
target Vessel
shared SharedObjects
Résultat System

operator() public static méthode

public static operator ( ) : bool
Résultat bool