C# Class kOS.Utilities.VesselUtils

Show file Open project: KSP-KOS/KOS

Public Methods

Method Description
AngleDelta ( float a, float b ) : float
BayCtrl ( Vessel vessel, bool state ) : void
DeployParachutes ( Vessel vessel, bool state ) : void
DeployParachutesSafe ( Vessel vessel, bool state ) : void
DrillCtrl ( Vessel vessel, bool state ) : void
DrillDeployCtrl ( Vessel vessel, bool state ) : void
FuelCellCtrl ( Vessel vessel, bool state ) : void
GetAvailableThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
GetBayStatus ( Vessel vessel ) : object
GetBodyByName ( string name ) : CelestialBody
GetChuteSafeStatus ( Vessel vessel ) : object
GetChuteStatus ( Vessel vessel ) : object
GetDrillDeployStatus ( Vessel vessel ) : object
GetDrillStatus ( Vessel vessel ) : object
GetDryMass ( this vessel ) : float
GetFacing ( CelestialBody body ) : kOS.Suffixed.Direction
GetFacing ( Vessel vessel ) : kOS.Suffixed.Direction
GetFuelCellStatus ( Vessel vessel ) : object
GetHeading ( Vessel vessel ) : float
GetISRUStatus ( Vessel vessel ) : object
GetIntakeStatus ( Vessel vessel ) : object
GetLadderStatus ( Vessel vessel ) : object
GetLandingLegStatus ( Vessel vessel ) : object
GetListOfActivatedEngines ( Vessel vessel ) : List
GetMaxThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
GetNorthVector ( Vessel vessel ) : UnityEngine.Vector3d
GetRadiatorStatus ( Vessel vessel ) : object
GetSolarPanelStatus ( Vessel vessel ) : object
GetTargetBearing ( Vessel vessel, Vessel target ) : float
GetTargetHeading ( Vessel vessel, Vessel target ) : float
GetVelocityHeading ( Vessel vessel ) : float
GetVesselByName ( string name, Vessel origin ) : Vessel
GetVesselLatitude ( Vessel vessel ) : float
GetVesselLongitude ( Vessel vessel ) : float
GetWetMass ( this vessel ) : float
ISRUCtrl ( Vessel vessel, bool state ) : void
IntakeCtrl ( Vessel vessel, bool state ) : void
LadderCtrl ( Vessel vessel, bool state ) : void
LandingLegsCtrl ( Vessel vessel, bool state ) : void
PartList ( this vessel, string partType, SharedObjects sharedObj ) : kOS.Suffixed.ListValue
RadiatorCtrl ( Vessel vessel, bool state ) : void
SetTarget ( IKOSTargetable val, Vessel currentVessel ) : void
SetTarget ( ITargetable val, Vessel currentVessel ) : void
SolarPanelCtrl ( Vessel vessel, bool state ) : void
TryGetEncounter ( Vessel vessel, SharedObjects sharedObj ) : object
TryGetResource ( Vessel vessel, string resourceName, double &total ) : bool
UnsetTarget ( ) : void
makeActionParam ( bool state ) : KSPActionParam

Private Methods

Method Description
GetMassDrag ( Vessel vessel ) : double
TryGetVesselByName ( string name, Vessel origin ) : Vessel

Method Details

AngleDelta() public static method

public static AngleDelta ( float a, float b ) : float
a float
b float
return float

BayCtrl() public static method

public static BayCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

DeployParachutes() public static method

public static DeployParachutes ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

DeployParachutesSafe() public static method

public static DeployParachutesSafe ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

DrillCtrl() public static method

public static DrillCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

DrillDeployCtrl() public static method

public static DrillDeployCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

FuelCellCtrl() public static method

public static FuelCellCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

GetAvailableThrust() public static method

public static GetAvailableThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
vessel Vessel
atmPressure double
return double

GetBayStatus() public static method

public static GetBayStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetBodyByName() public static method

public static GetBodyByName ( string name ) : CelestialBody
name string
return CelestialBody

GetChuteSafeStatus() public static method

public static GetChuteSafeStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetChuteStatus() public static method

public static GetChuteStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetDrillDeployStatus() public static method

public static GetDrillDeployStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetDrillStatus() public static method

public static GetDrillStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetDryMass() public static method

public static GetDryMass ( this vessel ) : float
vessel this
return float

GetFacing() public static method

public static GetFacing ( CelestialBody body ) : kOS.Suffixed.Direction
body CelestialBody
return kOS.Suffixed.Direction

GetFacing() public static method

public static GetFacing ( Vessel vessel ) : kOS.Suffixed.Direction
vessel Vessel
return kOS.Suffixed.Direction

GetFuelCellStatus() public static method

public static GetFuelCellStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetHeading() public static method

public static GetHeading ( Vessel vessel ) : float
vessel Vessel
return float

GetISRUStatus() public static method

public static GetISRUStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetIntakeStatus() public static method

public static GetIntakeStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetLadderStatus() public static method

public static GetLadderStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetLandingLegStatus() public static method

public static GetLandingLegStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetListOfActivatedEngines() public static method

public static GetListOfActivatedEngines ( Vessel vessel ) : List
vessel Vessel
return List

GetMaxThrust() public static method

public static GetMaxThrust ( Vessel vessel, double atmPressure = -1.0 ) : double
vessel Vessel
atmPressure double
return double

GetNorthVector() public static method

public static GetNorthVector ( Vessel vessel ) : UnityEngine.Vector3d
vessel Vessel
return UnityEngine.Vector3d

GetRadiatorStatus() public static method

public static GetRadiatorStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetSolarPanelStatus() public static method

public static GetSolarPanelStatus ( Vessel vessel ) : object
vessel Vessel
return object

GetTargetBearing() public static method

public static GetTargetBearing ( Vessel vessel, Vessel target ) : float
vessel Vessel
target Vessel
return float

GetTargetHeading() public static method

public static GetTargetHeading ( Vessel vessel, Vessel target ) : float
vessel Vessel
target Vessel
return float

GetVelocityHeading() public static method

public static GetVelocityHeading ( Vessel vessel ) : float
vessel Vessel
return float

GetVesselByName() public static method

public static GetVesselByName ( string name, Vessel origin ) : Vessel
name string
origin Vessel
return Vessel

GetVesselLatitude() public static method

public static GetVesselLatitude ( Vessel vessel ) : float
vessel Vessel
return float

GetVesselLongitude() public static method

public static GetVesselLongitude ( Vessel vessel ) : float
vessel Vessel
return float

GetWetMass() public static method

public static GetWetMass ( this vessel ) : float
vessel this
return float

ISRUCtrl() public static method

public static ISRUCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

IntakeCtrl() public static method

public static IntakeCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

LadderCtrl() public static method

public static LadderCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

LandingLegsCtrl() public static method

public static LandingLegsCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

PartList() public static method

public static PartList ( this vessel, string partType, SharedObjects sharedObj ) : kOS.Suffixed.ListValue
vessel this
partType string
sharedObj SharedObjects
return kOS.Suffixed.ListValue

RadiatorCtrl() public static method

public static RadiatorCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

SetTarget() public static method

public static SetTarget ( IKOSTargetable val, Vessel currentVessel ) : void
val IKOSTargetable
currentVessel Vessel
return void

SetTarget() public static method

public static SetTarget ( ITargetable val, Vessel currentVessel ) : void
val ITargetable
currentVessel Vessel
return void

SolarPanelCtrl() public static method

public static SolarPanelCtrl ( Vessel vessel, bool state ) : void
vessel Vessel
state bool
return void

TryGetEncounter() public static method

public static TryGetEncounter ( Vessel vessel, SharedObjects sharedObj ) : object
vessel Vessel
sharedObj SharedObjects
return object

TryGetResource() public static method

public static TryGetResource ( Vessel vessel, string resourceName, double &total ) : bool
vessel Vessel
resourceName string
total double
return bool

UnsetTarget() public static method

public static UnsetTarget ( ) : void
return void

makeActionParam() public static method

public static makeActionParam ( bool state ) : KSPActionParam
state bool
return KSPActionParam