Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | List of all members
DeltaVPartInfo Class Reference

Stores Part Info for Delta V calculations. More...

Classes

class  PartStageFuelMass
 

Public Member Functions

void CalculateMassValues ()
 Calculate and store the Mass values for the part. Fuel mass is take from SimulationResources More...
 
void CalculateStagingValues ()
 Calculate the Staging fields for the part More...
 
 DeltaVPartInfo (Part part, VesselDeltaV vesselDeltaV)
 
float GetCurrentFuelMass ()
 Get the current Fuel Mass in the part (SimulationResources). More...
 
float GetStageEndMass (int stage)
 Get the ending Fuel Mass for the Part at the start of a stage. If the stage info is not available will return the current fuel Mass. More...
 
float GetStageStartMass (int stage)
 Get the starting Fuel Mass for the Part at the start of a stage. If the stage info is not available will return the current fuel Mass. More...
 
bool JettisonInStage (int stage)
 Does this part Jettison any mass in the passed in stage? More...
 
void ResetStartSimulationResources (int stage)
 Resets the Simulated Resources on the Part to the currently start of stage stored set or from the Parts real resource set if we don't have one. More...
 

Public Attributes

int activationStage
 The Stage the part is set to activate in. More...
 
bool decoupleBeforeBurn
 Whether the Part decouples in the stage before any engine burns. More...
 
int decoupleStage
 The Stage the part is set to decouple from the vessel/ship. More...
 
float dryMass
 The Dry Mass of the part More...
 
List< ModuleEnginesengines
 Reference to any ModuleEngines if isEngine is true More...
 
float fuelMass
 The fuel mass of the part More...
 
bool isDecoupler
 Is the part a decoupler More...
 
bool isDockingPort
 Is the part a docking port More...
 
bool isEngine
 Is the part an engine More...
 
bool isFairing
 Is the part a fairing More...
 
bool isGenerator
 Is the Part a Generator More...
 
bool isIntake
 Is the part an Air Intake More...
 
bool isJettison
 Will the part jettison any mass More...
 
bool isSolarPanel
 Is the part a Solar panel. More...
 
bool isStageSeparator
 Does the part implement IStageSeparator PartModule? More...
 
float jettisonMass
 The mass of any components that are jettisoned by the part More...
 
Part jettisonPart
 Will be Set to the Part that will be jettisoned (and all it's children) for decoupler parts. Otherwise is Null. More...
 
ModuleAnchoredDecoupler moduleAnchoredDecoupler
 Reference to any ModuleAnchoredDecoupler if isDecoupler is true More...
 
ModuleDecouple moduleDecoupler
 Reference to any ModuleDecouple if isDecoupler is true More...
 
ModuleDeployableSolarPanel moduleDeployableSolarPanel
 Reference to any ModuleDeployableSolarPanel if isSolarPanel is true More...
 
ModuleDockingNode moduleDockingNode
 Reference to any ModuleDockingNode if isDockingPort is true More...
 
ModuleGenerator moduleGenerator
 Reference to any ModuleGenerator if isGenerator is true More...
 
ModuleResourceIntake moduleResourceIntake
 Reference to any ModuleResourceIntake if isIntake is true More...
 
IStageSeparator moduleStageSeparator
 Referency to any IStageSeparator if isStageSeparator is true More...
 
Part part
 The Part More...
 
DictionaryValueList< int,
PartStageFuelMass
stageFuelMass
 Stores a start and end fuel mass for the part keyed by Stage. More...
 
VesselDeltaV vesselDeltaV
 Reference to the VesselDeltaV object that this data is related to. More...
 

Detailed Description

Stores Part Info for Delta V calculations.

Constructor & Destructor Documentation

DeltaVPartInfo.DeltaVPartInfo ( Part  part,
VesselDeltaV  vesselDeltaV 
)
inline

Member Function Documentation

void DeltaVPartInfo.CalculateMassValues ( )
inline

Calculate and store the Mass values for the part. Fuel mass is take from SimulationResources

void DeltaVPartInfo.CalculateStagingValues ( )
inline

Calculate the Staging fields for the part

float DeltaVPartInfo.GetCurrentFuelMass ( )
inline

Get the current Fuel Mass in the part (SimulationResources).

Returns
float DeltaVPartInfo.GetStageEndMass ( int  stage)
inline

Get the ending Fuel Mass for the Part at the start of a stage. If the stage info is not available will return the current fuel Mass.

Parameters
stage
Returns
float DeltaVPartInfo.GetStageStartMass ( int  stage)
inline

Get the starting Fuel Mass for the Part at the start of a stage. If the stage info is not available will return the current fuel Mass.

Parameters
stage
Returns
bool DeltaVPartInfo.JettisonInStage ( int  stage)
inline

Does this part Jettison any mass in the passed in stage?

Parameters
stage
Returns
void DeltaVPartInfo.ResetStartSimulationResources ( int  stage)
inline

Resets the Simulated Resources on the Part to the currently start of stage stored set or from the Parts real resource set if we don't have one.

Parameters
stageThe stage

Member Data Documentation

int DeltaVPartInfo.activationStage

The Stage the part is set to activate in.

bool DeltaVPartInfo.decoupleBeforeBurn

Whether the Part decouples in the stage before any engine burns.

int DeltaVPartInfo.decoupleStage

The Stage the part is set to decouple from the vessel/ship.

float DeltaVPartInfo.dryMass

The Dry Mass of the part

List<ModuleEngines> DeltaVPartInfo.engines

Reference to any ModuleEngines if isEngine is true

float DeltaVPartInfo.fuelMass

The fuel mass of the part

bool DeltaVPartInfo.isDecoupler

Is the part a decoupler

bool DeltaVPartInfo.isDockingPort

Is the part a docking port

bool DeltaVPartInfo.isEngine

Is the part an engine

bool DeltaVPartInfo.isFairing

Is the part a fairing

bool DeltaVPartInfo.isGenerator

Is the Part a Generator

bool DeltaVPartInfo.isIntake

Is the part an Air Intake

bool DeltaVPartInfo.isJettison

Will the part jettison any mass

bool DeltaVPartInfo.isSolarPanel

Is the part a Solar panel.

bool DeltaVPartInfo.isStageSeparator

Does the part implement IStageSeparator PartModule?

float DeltaVPartInfo.jettisonMass

The mass of any components that are jettisoned by the part

Part DeltaVPartInfo.jettisonPart

Will be Set to the Part that will be jettisoned (and all it's children) for decoupler parts. Otherwise is Null.

ModuleAnchoredDecoupler DeltaVPartInfo.moduleAnchoredDecoupler

Reference to any ModuleAnchoredDecoupler if isDecoupler is true

ModuleDecouple DeltaVPartInfo.moduleDecoupler

Reference to any ModuleDecouple if isDecoupler is true

ModuleDeployableSolarPanel DeltaVPartInfo.moduleDeployableSolarPanel

Reference to any ModuleDeployableSolarPanel if isSolarPanel is true

ModuleDockingNode DeltaVPartInfo.moduleDockingNode

Reference to any ModuleDockingNode if isDockingPort is true

ModuleGenerator DeltaVPartInfo.moduleGenerator

Reference to any ModuleGenerator if isGenerator is true

ModuleResourceIntake DeltaVPartInfo.moduleResourceIntake

Reference to any ModuleResourceIntake if isIntake is true

IStageSeparator DeltaVPartInfo.moduleStageSeparator

Referency to any IStageSeparator if isStageSeparator is true

Part DeltaVPartInfo.part

The Part

DictionaryValueList<int, PartStageFuelMass> DeltaVPartInfo.stageFuelMass

Stores a start and end fuel mass for the part keyed by Stage.

VesselDeltaV DeltaVPartInfo.vesselDeltaV

Reference to the VesselDeltaV object that this data is related to.


The documentation for this class was generated from the following file: