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

Public Member Functions

bool HasPartialIDstring (string pId)
 test whether the subject id contains the given string More...
 
bool IsFromBody (CelestialBody cb)
 Test whether the subject is from a given celestial body More...
 
bool IsFromSituation (ExperimentSituations situation)
 test whether the subject was performed under a given situation More...
 
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 
 ScienceSubject (string id, string title, float dataScale, float subjectValue, float scienceCap)
 
 ScienceSubject (string id, string title, float dataScale, float subjectValue, float scienceCap, bool applyScienceScale)
 
 ScienceSubject (ScienceExperiment exp, ExperimentSituations sit, CelestialBody body, string biome="", string displaybiome="")
 
 ScienceSubject (ScienceExperiment exp, ExperimentSituations sit, string sourceUid, string sourceTitle, CelestialBody body, string biome="", string displaybiome="")
 
 ScienceSubject (ConfigNode node)
 

Public Attributes

bool applyScienceScale
 If set to false will not apply the scaling factor on scientificValue for the data. More...
 
float dataScale
 A fixed scaling factor for the size of the data in relation to science units More...
 
string id
 
float science
 The amount of science gathered by this subject More...
 
float scienceCap
 the target 'max' value for scaling the scienceValue More...
 
float scientificValue
 A scaling factor for the data, that decreases as science is earned on the subject. More...
 
float subjectValue
 A scaling factor for the data, based on celestial body and experiment situation. More...
 
string title
 

Constructor & Destructor Documentation

ScienceSubject.ScienceSubject ( string  id,
string  title,
float  dataScale,
float  subjectValue,
float  scienceCap 
)
inline
ScienceSubject.ScienceSubject ( string  id,
string  title,
float  dataScale,
float  subjectValue,
float  scienceCap,
bool  applyScienceScale 
)
inline
ScienceSubject.ScienceSubject ( ScienceExperiment  exp,
ExperimentSituations  sit,
CelestialBody  body,
string  biome = "",
string  displaybiome = "" 
)
inline
ScienceSubject.ScienceSubject ( ScienceExperiment  exp,
ExperimentSituations  sit,
string  sourceUid,
string  sourceTitle,
CelestialBody  body,
string  biome = "",
string  displaybiome = "" 
)
inline
ScienceSubject.ScienceSubject ( ConfigNode  node)
inline

Member Function Documentation

bool ScienceSubject.HasPartialIDstring ( string  pId)
inline

test whether the subject id contains the given string

bool ScienceSubject.IsFromBody ( CelestialBody  cb)
inline

Test whether the subject is from a given celestial body

bool ScienceSubject.IsFromSituation ( ExperimentSituations  situation)
inline

test whether the subject was performed under a given situation

void ScienceSubject.Load ( ConfigNode  node)
inline

Implements IConfigNode.

void ScienceSubject.Save ( ConfigNode  node)
inline

Implements IConfigNode.

Member Data Documentation

bool ScienceSubject.applyScienceScale

If set to false will not apply the scaling factor on scientificValue for the data.

float ScienceSubject.dataScale

A fixed scaling factor for the size of the data in relation to science units

string ScienceSubject.id
float ScienceSubject.science

The amount of science gathered by this subject

float ScienceSubject.scienceCap

the target 'max' value for scaling the scienceValue

float ScienceSubject.scientificValue

A scaling factor for the data, that decreases as science is earned on the subject.

float ScienceSubject.subjectValue

A scaling factor for the data, based on celestial body and experiment situation.

string ScienceSubject.title

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