C# Class kOS.Suffixed.VesselTarget

Inheritance: Orbitable, IKOSTargetable
Datei anzeigen Open project: KSP-KOS/KOS Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method Description
Equals ( VesselTarget other ) : bool

Private Methods

Method 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 method

public Dump ( ) : Dump
return Dump

Equals() protected method

protected Equals ( VesselTarget other ) : bool
other VesselTarget
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetAllParts() public method

public GetAllParts ( ) : kOS.Suffixed.ListValue
return kOS.Suffixed.ListValue

GetAvailableThrustAt() public method

public GetAvailableThrustAt ( ScalarValue atmPressure ) : ScalarValue
atmPressure kOS.Safe.Encapsulation.ScalarValue
return kOS.Safe.Encapsulation.ScalarValue

GetControlPart() public method

public GetControlPart ( ) : global::Part
return global::Part

GetCrew() public method

public GetCrew ( ) : kOS.Suffixed.ListValue
return kOS.Suffixed.ListValue

GetCrewCapacity() public method

public GetCrewCapacity ( ) : ScalarValue
return kOS.Safe.Encapsulation.ScalarValue

GetDistance() public method

public GetDistance ( ) : ScalarValue
return kOS.Safe.Encapsulation.ScalarValue

GetFlightControl() public method

public GetFlightControl ( ) : FlightControl
return FlightControl

GetGuid() public method

public GetGuid ( ) : Guid
return Guid

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetMaxThrustAt() public method

public GetMaxThrustAt ( ScalarValue atmPressure ) : ScalarValue
atmPressure ScalarValue
return ScalarValue

GetMessages() public method

public GetMessages ( ) : MessageQueueStructure
return MessageQueueStructure

GetName() public method

public GetName ( ) : StringValue
return StringValue

GetNorthVector() public method

public GetNorthVector ( ) : Vector
return Vector

GetOrbitAtUT() public method

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

GetPosition() public method

public GetPosition ( ) : Vector
return Vector

GetPositionAtUT() public method

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.
return Vector

GetSuffix() public method

public GetSuffix ( string suffixName ) : ISuffixResult
suffixName string
return ISuffixResult

GetUpVector() public method

public GetUpVector ( ) : Vector
return Vector

GetVelocities() public method

public GetVelocities ( ) : OrbitableVelocity
return OrbitableVelocity

GetVelocitiesAtUT() public method

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.
return OrbitableVelocity

LoadDump() public method

public LoadDump ( Dump dump ) : void
dump Dump
return void

ThrowIfNotCPUVessel() public method

public ThrowIfNotCPUVessel ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

VesselTarget() public method

public VesselTarget ( SharedObjects shared ) : System
shared SharedObjects
return System

VesselTarget() public method

public VesselTarget ( Vessel target, SharedObjects shared ) : System
target Vessel
shared SharedObjects
return System

operator() public static method

public static operator ( ) : bool
return bool