Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Contracts.Parameters.ReachFlightEnvelope Class Reference
Inheritance diagram for Contracts.Parameters.ReachFlightEnvelope:
Contracts.ContractParameter Contracts.IContractParameterHost

Public Member Functions

bool checkVesselWithinFlightEnvelope (Vessel v)
 
 ReachFlightEnvelope ()
 
 ReachFlightEnvelope (CelestialBody dest, Vessel.Situations sit, string biomeName, float maxAlt, float minAlt, float maxSpd, float minSpd, string title)
 
- Public Member Functions inherited from Contracts.ContractParameter
ContractParameter AddParameter (ContractParameter parameter, string id=null)
 
bool AllChildParametersComplete ()
 
bool AnyChildParametersFailed ()
 
long CreateID ()
 
void Disable (bool recursive=false)
 
void Enable ()
 
ContractParameter GetParameter (int index)
 
ContractParameter GetParameter (string id)
 
ContractParameter GetParameter (System.Type type)
 
GetParameter< T > (string id=null)
 
void Load (ConfigNode node)
 
void NestToParent (IContractParameterHost parent)
 
void ParameterStateUpdate (ContractParameter p)
 
void Register ()
 
void RemoveParameter (int index)
 
void RemoveParameter (string id)
 
void RemoveParameter (System.Type type)
 
void RemoveParameter (ContractParameter parameter)
 
void Reset ()
 
void Save (ConfigNode node)
 
void SetFunds (float completion, CelestialBody body=null)
 
void SetFunds (float completion, float failure, CelestialBody body=null)
 
void SetReputation (float completion, float failure, CelestialBody body=null)
 
void SetReputation (float completion, CelestialBody body=null)
 
void SetScience (float completion, CelestialBody body=null)
 
void Unregister ()
 
void Update ()
 

Static Public Member Functions

static string GetSituationStringShort (Vessel.Situations sit, CelestialBody body, string biomeName)
 

Public Attributes

string BiomeName
 
CelestialBody Destination
 
double maxAltitude
 
double maxSpeed
 
double minAltitude
 
double minSpeed
 
Vessel.Situations Situation
 
bool useAltLimits
 
bool useSpdLimits
 
- Public Attributes inherited from Contracts.ContractParameter
double FundsCompletion
 The funds gained for completing this parameter More...
 
double FundsFailure
 The funds gained for failing this parameter More...
 
EventData< ContractParameter,
ParameterState
OnStateChange = new EventData<ContractParameter, ParameterState>("OnStateChange")
 
float ReputationCompletion
 The reputation gain for completing this parameter More...
 
float ReputationFailure
 The reputation gain for failing this parameter More...
 
float ScienceCompletion
 The science gained for completing this parameter More...
 

Protected Member Functions

override string GetTitle ()
 
override void OnLoad (ConfigNode node)
 
override void OnRegister ()
 
override void OnSave (ConfigNode node)
 
override void OnUnregister ()
 
- Protected Member Functions inherited from Contracts.ContractParameter
virtual void AwardCompletion ()
 
virtual string GetHashString ()
 
virtual string GetMessageComplete ()
 
virtual string GetMessageFailed ()
 
virtual string GetMessageIncomplete ()
 
virtual string GetNotes ()
 
virtual void OnParameterStateChange (ContractParameter p)
 
virtual void OnReset ()
 
virtual void OnUpdate ()
 
virtual void PenalizeFailure ()
 
void SendStateMessage (string title, string message, MessageSystemButton.MessageButtonColor color, MessageSystemButton.ButtonIcons icon)
 Sends user a text message via messaging system More...
 
void SetComplete ()
 
void SetFailed ()
 
void SetIncomplete ()
 

Protected Attributes

Vessel tgtVessel
 
string title = ""
 
- Protected Attributes inherited from Contracts.ContractParameter
bool allowPartialFailure = false
 
bool disableOnStateChange = true
 
bool enabled = true
 
string id = null
 
bool optional = false
 
ParameterState state = ParameterState.Incomplete
 

Additional Inherited Members

- Properties inherited from Contracts.ContractParameter
bool AllowPartialFailure [get, set]
 Whether a parameter failure also fails the contract. More...
 
IEnumerable< ContractParameterAllParameters [get]
 
bool DisableOnStateChange [get, set]
 
bool Enabled [get, set]
 
string HashString [get]
 
string ID [get, set]
 
string MessageComplete [get]
 
string MessageFailed [get]
 
string MessageIncomplete [get]
 
string Notes [get]
 
bool Optional [get, set]
 
int ParameterCount [get]
 
IContractParameterHost Parent [get]
 
Contract Root [get]
 
ParameterState State [get]
 
ContractParameter this[int index] [get]
 
ContractParameter this[string id] [get]
 
ContractParameter this[System.Type type] [get]
 
string Title [get]
 
- Properties inherited from Contracts.IContractParameterHost
int ParameterCount [get]
 
IContractParameterHost Parent [get]
 
Contract Root [get]
 
ContractParameter this[int index] [get]
 
ContractParameter this[string id] [get]
 
ContractParameter this[System.Type type] [get]
 
string Title [get]
 

Constructor & Destructor Documentation

Contracts.Parameters.ReachFlightEnvelope.ReachFlightEnvelope ( )
inline
Contracts.Parameters.ReachFlightEnvelope.ReachFlightEnvelope ( CelestialBody  dest,
Vessel.Situations  sit,
string  biomeName,
float  maxAlt,
float  minAlt,
float  maxSpd,
float  minSpd,
string  title 
)
inline

Member Function Documentation

bool Contracts.Parameters.ReachFlightEnvelope.checkVesselWithinFlightEnvelope ( Vessel  v)
inline
static string Contracts.Parameters.ReachFlightEnvelope.GetSituationStringShort ( Vessel.Situations  sit,
CelestialBody  body,
string  biomeName 
)
inlinestatic
override string Contracts.Parameters.ReachFlightEnvelope.GetTitle ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void Contracts.Parameters.ReachFlightEnvelope.OnLoad ( ConfigNode  node)
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void Contracts.Parameters.ReachFlightEnvelope.OnRegister ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void Contracts.Parameters.ReachFlightEnvelope.OnSave ( ConfigNode  node)
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void Contracts.Parameters.ReachFlightEnvelope.OnUnregister ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

Member Data Documentation

string Contracts.Parameters.ReachFlightEnvelope.BiomeName
CelestialBody Contracts.Parameters.ReachFlightEnvelope.Destination
double Contracts.Parameters.ReachFlightEnvelope.maxAltitude
double Contracts.Parameters.ReachFlightEnvelope.maxSpeed
double Contracts.Parameters.ReachFlightEnvelope.minAltitude
double Contracts.Parameters.ReachFlightEnvelope.minSpeed
Vessel.Situations Contracts.Parameters.ReachFlightEnvelope.Situation
Vessel Contracts.Parameters.ReachFlightEnvelope.tgtVessel
protected
string Contracts.Parameters.ReachFlightEnvelope.title = ""
protected
bool Contracts.Parameters.ReachFlightEnvelope.useAltLimits
bool Contracts.Parameters.ReachFlightEnvelope.useSpdLimits

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