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

Public Member Functions

float AddReputation (float r, TransactionReasons reason)
 Adds the given amount of Reputation. Because Reputation follows a dimishing returns curve approaching extremes, this method will split the given amounts into small 'grains', to ensure the value added properly traces the curve. More...
 
void addReputation_discrete (float reputation, TransactionReasons reason)
 Unlike AddReputation, this method adds the given amount instantly. Use with caution, may cause values to jump around wildly More...
 
override void OnAwake ()
 
override void OnLoad (ConfigNode node)
 
override void OnSave (ConfigNode node)
 
void SetReputation (float value, TransactionReasons reason)
 
- Public Member Functions inherited from ScenarioModule
void Load (ConfigNode node)
 
void Save (ConfigNode node)
 

Static Public Attributes

static Reputation Instance
 
static float RepRange = 1000f
 

Properties

static float CurrentRep [get]
 The current reputation, which ranges from -1000 to 1000 More...
 
float reputation [get]
 
static float UnitRep [get]
 The current 'unit' reputation. A value from -1 to 1 More...
 
- Properties inherited from ScenarioModule
int ClassID [get]
 
string ClassName [get]
 
BaseEventList Events [get]
 
BaseFieldList Fields [get]
 

Additional Inherited Members

- Public Attributes inherited from ScenarioModule
ScenarioRunner runner
 
ProtoScenarioModule snapshot
 
List< GameScenestargetScenes
 

Member Function Documentation

float Reputation.AddReputation ( float  r,
TransactionReasons  reason 
)
inline

Adds the given amount of Reputation. Because Reputation follows a dimishing returns curve approaching extremes, this method will split the given amounts into small 'grains', to ensure the value added properly traces the curve.

Parameters
reputation
reason
void Reputation.addReputation_discrete ( float  reputation,
TransactionReasons  reason 
)
inline

Unlike AddReputation, this method adds the given amount instantly. Use with caution, may cause values to jump around wildly

override void Reputation.OnAwake ( )
inlinevirtual

Reimplemented from ScenarioModule.

override void Reputation.OnLoad ( ConfigNode  node)
inlinevirtual

Reimplemented from ScenarioModule.

override void Reputation.OnSave ( ConfigNode  node)
inlinevirtual

Reimplemented from ScenarioModule.

void Reputation.SetReputation ( float  value,
TransactionReasons  reason 
)
inline

Member Data Documentation

Reputation Reputation.Instance
static
float Reputation.RepRange = 1000f
static

Property Documentation

float Reputation.CurrentRep
staticget

The current reputation, which ranges from -1000 to 1000

float Reputation.reputation
get
float Reputation.UnitRep
staticget

The current 'unit' reputation. A value from -1 to 1


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