Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GameVariables Class Reference
Inheritance diagram for GameVariables:

Public Types

enum  OrbitDisplayMode { OrbitDisplayMode.None = 0, OrbitDisplayMode.CelestialBodyOrbits = 1, OrbitDisplayMode.AllOrbits = 2, OrbitDisplayMode.PatchedConics = 3 }
 

Public Member Functions

virtual bool EVAIsPossible (bool evaUnlocked, Vessel v)
 
virtual int GetActiveContractsLimit (float mCtrlNormLevel)
 
virtual int GetActiveCrewLimit (float astroComplexNormLevel)
 
virtual int GetActiveStrategyLimit (float adminNormLevel)
 
virtual float GetContractDestinationWeight (CelestialBody body)
 
virtual float GetContractFundsAdvanceFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetContractFundsCompletionFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetContractFundsFailureFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetContractLevelLimit (float mCtrlNormLevel)
 
virtual float GetContractPrestigeFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetContractReputationCompletionFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetContractReputationFailureFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetContractScienceCompletionFactor (Contracts.Contract.ContractPrestige prestige)
 
virtual float GetCraftMassLimit (float editorNormLevel, bool isPad)
 
virtual Vector3 GetCraftSizeLimit (float editorNormLevel, bool isPad)
 
virtual float GetCrewLevelLimit (float astroComplexNormLevel)
 
virtual float GetDataToScienceRatio (float RnDnormLevel)
 
virtual DoubleCurve GetDSNPowerCurve ()
 
virtual double GetDSNRange (float level)
 
virtual DoubleCurve GetDSNRangeCurve ()
 
virtual DoubleCurve GetDSNScienceCurve ()
 
virtual string GetEVALockedReason (Vessel v, ProtoCrewMember crew)
 
virtual float GetExperimentLevel (float RnDnormLevel)
 
virtual float GetMentalityDeadlineFactor (float mentalityFactor, Contracts.Contract.ContractPrestige prestige)
 
virtual float GetMentalityExpiryFactor (float mentalityFactor, Contracts.Contract.ContractPrestige prestige)
 
virtual float GetMentalityFundsFactor (float mentalityFactor, Contracts.Contract.ContractPrestige prestige)
 
virtual float GetMentalityReputationFactor (float mentalityFactor, Contracts.Contract.ContractPrestige prestige)
 
virtual float GetMentalityScienceFactor (float mentalityFactor, Contracts.Contract.ContractPrestige prestige)
 
virtual OrbitDisplayMode GetOrbitDisplayMode (float tsNormLevel)
 
virtual int GetPartCountLimit (float editorNormLevel, bool isVAB)
 
virtual int GetPatchesAheadLimit (float tsNormLevel)
 
virtual float GetRecoveredPartValue (float pValue)
 
virtual float GetRecoveredResourceValue (float rscValue)
 
virtual float GetRecruitHireCost (int currentActive)
 
virtual float GetScienceCostLimit (float RnDnormLevel)
 
virtual float GetStrategyCommitRange (float adminNormLevel)
 
virtual float GetStrategyLevelLimit (float adminNormLevel)
 
virtual int GetTrackedObjectLimit (float tsNormLevel)
 
virtual bool ManeuverToolAvailable (float tsNormLevel)
 
virtual UntrackedObjectClass MinTrackedObjectSize (float tsNormLevel)
 
virtual float ScoreFlightEnvelope (float altitude, float altEnvelope, float speed, float speedEnvelope)
 
virtual float ScoreSituation (Vessel.Situations sit, CelestialBody where)
 
virtual bool UnlockedActionGroupsCustom (float editorNormLevel, bool isVAB)
 
virtual bool UnlockedActionGroupsStock (float editorNormLevel, bool isVAB)
 
virtual bool UnlockedEVA (float astroComplexNormLevel)
 
virtual bool UnlockedEVAClamber (float astroComplexNormLevel)
 
virtual bool UnlockedEVAFlags (float astroComplexNormLevel)
 
virtual bool UnlockedFlightPlanning (float mCtrlNormLevel)
 
virtual bool UnlockedFuelTransfer (float editorNormLevel)
 
virtual bool UnlockedSpaceObjectDiscovery (float tsNormLevel)
 

Static Public Member Functions

static float GetRecruitHireCost (int currentActive, float baseCost, float flatRate, float rateModifier)
 Get cost for hiring crew taking FundsLossMultiplayer from difficulty settings into account More...
 

Public Attributes

float contractDestinationWeight = 1f
 
float contractFundsAdvanceFactor = 1f
 
float contractFundsCompletionFactor = 1f
 
float contractFundsFailureFactor = 1f
 
float contractPrestigeExceptional = 1.5f
 
float contractPrestigeSignificant = 1.25f
 
float contractPrestigeTrivial = 1f
 
float contractReputationCompletionFactor = 1f
 
float contractReputationFailureFactor = 1f
 
float contractScienceCompletionFactor = 1f
 
float mentalityDeadlineExceptional = 1.3f
 
float mentalityDeadlineSignificant = 1.2f
 
float mentalityDeadlineTrivial = 1.1f
 
float mentalityExpiryExceptional = 1.3f
 
float mentalityExpirySignificant = 1.2f
 
float mentalityExpiryTrivial = 1.1f
 
float mentalityFundsExceptional = 1.3f
 
float mentalityFundsSignificant = 1.2f
 
float mentalityFundsTrivial = 1.1f
 
float mentalityReputationExceptional = 1.3f
 
float mentalityReputationSignificant = 1.2f
 
float mentalityReputationTrivial = 1.1f
 
float mentalityScienceExceptional = 1.3f
 
float mentalityScienceSignificant = 1.2f
 
float mentalityScienceTrivial = 1.1f
 
float partRecoveryValueFactor = 0.9f
 
AnimationCurve reputationAddition
 
float reputationKerbalDeath = 10f
 
float reputationKerbalRecovery = 25f
 
AnimationCurve reputationSubtraction
 
float resourceRecoveryValueFactor = 0.95f
 

Static Public Attributes

static GameVariables Instance
 

Member Enumeration Documentation

Enumerator
None 
CelestialBodyOrbits 
AllOrbits 
PatchedConics 

Member Function Documentation

virtual bool GameVariables.EVAIsPossible ( bool  evaUnlocked,
Vessel  v 
)
inlinevirtual
virtual int GameVariables.GetActiveContractsLimit ( float  mCtrlNormLevel)
inlinevirtual
virtual int GameVariables.GetActiveCrewLimit ( float  astroComplexNormLevel)
inlinevirtual
virtual int GameVariables.GetActiveStrategyLimit ( float  adminNormLevel)
inlinevirtual
virtual float GameVariables.GetContractDestinationWeight ( CelestialBody  body)
inlinevirtual
virtual float GameVariables.GetContractFundsAdvanceFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetContractFundsCompletionFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetContractFundsFailureFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetContractLevelLimit ( float  mCtrlNormLevel)
inlinevirtual
virtual float GameVariables.GetContractPrestigeFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetContractReputationCompletionFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetContractReputationFailureFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetContractScienceCompletionFactor ( Contracts.Contract.ContractPrestige  prestige)
inlinevirtual
virtual float GameVariables.GetCraftMassLimit ( float  editorNormLevel,
bool  isPad 
)
inlinevirtual
virtual Vector3 GameVariables.GetCraftSizeLimit ( float  editorNormLevel,
bool  isPad 
)
inlinevirtual
virtual float GameVariables.GetCrewLevelLimit ( float  astroComplexNormLevel)
inlinevirtual
virtual float GameVariables.GetDataToScienceRatio ( float  RnDnormLevel)
inlinevirtual
virtual DoubleCurve GameVariables.GetDSNPowerCurve ( )
inlinevirtual
virtual double GameVariables.GetDSNRange ( float  level)
inlinevirtual
virtual DoubleCurve GameVariables.GetDSNRangeCurve ( )
inlinevirtual
virtual DoubleCurve GameVariables.GetDSNScienceCurve ( )
inlinevirtual
virtual string GameVariables.GetEVALockedReason ( Vessel  v,
ProtoCrewMember  crew 
)
inlinevirtual
virtual float GameVariables.GetExperimentLevel ( float  RnDnormLevel)
inlinevirtual
virtual float GameVariables.GetMentalityDeadlineFactor ( float  mentalityFactor,
Contracts.Contract.ContractPrestige  prestige 
)
inlinevirtual
virtual float GameVariables.GetMentalityExpiryFactor ( float  mentalityFactor,
Contracts.Contract.ContractPrestige  prestige 
)
inlinevirtual
virtual float GameVariables.GetMentalityFundsFactor ( float  mentalityFactor,
Contracts.Contract.ContractPrestige  prestige 
)
inlinevirtual
virtual float GameVariables.GetMentalityReputationFactor ( float  mentalityFactor,
Contracts.Contract.ContractPrestige  prestige 
)
inlinevirtual
virtual float GameVariables.GetMentalityScienceFactor ( float  mentalityFactor,
Contracts.Contract.ContractPrestige  prestige 
)
inlinevirtual
virtual OrbitDisplayMode GameVariables.GetOrbitDisplayMode ( float  tsNormLevel)
inlinevirtual
virtual int GameVariables.GetPartCountLimit ( float  editorNormLevel,
bool  isVAB 
)
inlinevirtual
virtual int GameVariables.GetPatchesAheadLimit ( float  tsNormLevel)
inlinevirtual
virtual float GameVariables.GetRecoveredPartValue ( float  pValue)
inlinevirtual
virtual float GameVariables.GetRecoveredResourceValue ( float  rscValue)
inlinevirtual
static float GameVariables.GetRecruitHireCost ( int  currentActive,
float  baseCost,
float  flatRate,
float  rateModifier 
)
inlinestatic

Get cost for hiring crew taking FundsLossMultiplayer from difficulty settings into account

Parameters
currentActive
baseCost
flatRate
rateModifier
Returns
virtual float GameVariables.GetRecruitHireCost ( int  currentActive)
inlinevirtual
virtual float GameVariables.GetScienceCostLimit ( float  RnDnormLevel)
inlinevirtual
virtual float GameVariables.GetStrategyCommitRange ( float  adminNormLevel)
inlinevirtual
virtual float GameVariables.GetStrategyLevelLimit ( float  adminNormLevel)
inlinevirtual
virtual int GameVariables.GetTrackedObjectLimit ( float  tsNormLevel)
inlinevirtual
virtual bool GameVariables.ManeuverToolAvailable ( float  tsNormLevel)
inlinevirtual
virtual UntrackedObjectClass GameVariables.MinTrackedObjectSize ( float  tsNormLevel)
inlinevirtual
virtual float GameVariables.ScoreFlightEnvelope ( float  altitude,
float  altEnvelope,
float  speed,
float  speedEnvelope 
)
inlinevirtual
virtual float GameVariables.ScoreSituation ( Vessel.Situations  sit,
CelestialBody  where 
)
inlinevirtual
virtual bool GameVariables.UnlockedActionGroupsCustom ( float  editorNormLevel,
bool  isVAB 
)
inlinevirtual
virtual bool GameVariables.UnlockedActionGroupsStock ( float  editorNormLevel,
bool  isVAB 
)
inlinevirtual
virtual bool GameVariables.UnlockedEVA ( float  astroComplexNormLevel)
inlinevirtual
virtual bool GameVariables.UnlockedEVAClamber ( float  astroComplexNormLevel)
inlinevirtual
virtual bool GameVariables.UnlockedEVAFlags ( float  astroComplexNormLevel)
inlinevirtual
virtual bool GameVariables.UnlockedFlightPlanning ( float  mCtrlNormLevel)
inlinevirtual
virtual bool GameVariables.UnlockedFuelTransfer ( float  editorNormLevel)
inlinevirtual
virtual bool GameVariables.UnlockedSpaceObjectDiscovery ( float  tsNormLevel)
inlinevirtual

Member Data Documentation

float GameVariables.contractDestinationWeight = 1f
float GameVariables.contractFundsAdvanceFactor = 1f
float GameVariables.contractFundsCompletionFactor = 1f
float GameVariables.contractFundsFailureFactor = 1f
float GameVariables.contractPrestigeExceptional = 1.5f
float GameVariables.contractPrestigeSignificant = 1.25f
float GameVariables.contractPrestigeTrivial = 1f
float GameVariables.contractReputationCompletionFactor = 1f
float GameVariables.contractReputationFailureFactor = 1f
float GameVariables.contractScienceCompletionFactor = 1f
GameVariables GameVariables.Instance
static
float GameVariables.mentalityDeadlineExceptional = 1.3f
float GameVariables.mentalityDeadlineSignificant = 1.2f
float GameVariables.mentalityDeadlineTrivial = 1.1f
float GameVariables.mentalityExpiryExceptional = 1.3f
float GameVariables.mentalityExpirySignificant = 1.2f
float GameVariables.mentalityExpiryTrivial = 1.1f
float GameVariables.mentalityFundsExceptional = 1.3f
float GameVariables.mentalityFundsSignificant = 1.2f
float GameVariables.mentalityFundsTrivial = 1.1f
float GameVariables.mentalityReputationExceptional = 1.3f
float GameVariables.mentalityReputationSignificant = 1.2f
float GameVariables.mentalityReputationTrivial = 1.1f
float GameVariables.mentalityScienceExceptional = 1.3f
float GameVariables.mentalityScienceSignificant = 1.2f
float GameVariables.mentalityScienceTrivial = 1.1f
float GameVariables.partRecoveryValueFactor = 0.9f
AnimationCurve GameVariables.reputationAddition
float GameVariables.reputationKerbalDeath = 10f
float GameVariables.reputationKerbalRecovery = 25f
AnimationCurve GameVariables.reputationSubtraction
float GameVariables.resourceRecoveryValueFactor = 0.95f

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