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 | List of all members
PartTestConstraint Class Reference
Inheritance diagram for PartTestConstraint:
IConfigNode

Public Types

enum  ConstraintTest { ConstraintTest.GT, ConstraintTest.LT, ConstraintTest.EQ, ConstraintTest.NEQ }
 
enum  ConstraintType {
  ConstraintType.SPEED, ConstraintType.SPEEDENV, ConstraintType.ALTITUDE, ConstraintType.ALTITUDEENV,
  ConstraintType.DENSITY, ConstraintType.DYNAMICPRESSURE, ConstraintType.OXYGEN, ConstraintType.ATMOSPHERE,
  ConstraintType.SITUATION, ConstraintType.REPEATABILITY
}
 
enum  TestRepeatability { TestRepeatability.ALWAYS, TestRepeatability.BODYANDSITUATION, TestRepeatability.ONCEPERPART }
 

Public Member Functions

bool BodyAvailable (CelestialBody cb)
 
void Load (ConfigNode node)
 
 PartTestConstraint (ConfigNode node=null)
 
bool PrestigeAvailable (Contracts.Contract.ContractPrestige pres)
 
void Save (ConfigNode node)
 
bool SituationAvailable (Vessel.Situations sit)
 
bool Test (double input)
 
bool Test (int input)
 
bool Test (bool input)
 
bool Test (string input)
 
bool Test (uint sitmask)
 

Static Public Member Functions

static bool SituationAvailable (List< PartTestConstraint > constraints, Vessel.Situations sit)
 

Public Attributes

string body = "_Any"
 
string prestige = "_Any"
 
Contracts.Contract.ContractPrestige prestigeLevel
 
uint situationMask = uint.MaxValue
 
ConstraintTest test = ConstraintTest.EQ
 
ConstraintType type
 
bool valid = false
 
string value = ""
 
bool valueB
 
double valueD = double.NaN
 
uint valueI
 
TestRepeatability valueR
 

Member Enumeration Documentation

Enumerator
GT 
LT 
EQ 
NEQ 
Enumerator
SPEED 
SPEEDENV 
ALTITUDE 
ALTITUDEENV 
DENSITY 
DYNAMICPRESSURE 
OXYGEN 
ATMOSPHERE 
SITUATION 
REPEATABILITY 
Enumerator
ALWAYS 
BODYANDSITUATION 
ONCEPERPART 

Constructor & Destructor Documentation

PartTestConstraint.PartTestConstraint ( ConfigNode  node = null)
inline

Member Function Documentation

bool PartTestConstraint.BodyAvailable ( CelestialBody  cb)
inline
void PartTestConstraint.Load ( ConfigNode  node)
inline

Implements IConfigNode.

bool PartTestConstraint.PrestigeAvailable ( Contracts.Contract.ContractPrestige  pres)
inline
void PartTestConstraint.Save ( ConfigNode  node)
inline

Implements IConfigNode.

bool PartTestConstraint.SituationAvailable ( Vessel.Situations  sit)
inline
static bool PartTestConstraint.SituationAvailable ( List< PartTestConstraint constraints,
Vessel.Situations  sit 
)
inlinestatic
bool PartTestConstraint.Test ( double  input)
inline
bool PartTestConstraint.Test ( int  input)
inline
bool PartTestConstraint.Test ( bool  input)
inline
bool PartTestConstraint.Test ( string  input)
inline
bool PartTestConstraint.Test ( uint  sitmask)
inline

Member Data Documentation

string PartTestConstraint.body = "_Any"
string PartTestConstraint.prestige = "_Any"
Contracts.Contract.ContractPrestige PartTestConstraint.prestigeLevel
uint PartTestConstraint.situationMask = uint.MaxValue
ConstraintTest PartTestConstraint.test = ConstraintTest.EQ
ConstraintType PartTestConstraint.type
bool PartTestConstraint.valid = false
string PartTestConstraint.value = ""
bool PartTestConstraint.valueB
double PartTestConstraint.valueD = double.NaN
uint PartTestConstraint.valueI
TestRepeatability PartTestConstraint.valueR

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