Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | List of all members
Strategies.CurrencyExchanger Class Reference
Inheritance diagram for Strategies.CurrencyExchanger:
Strategies.StrategyEffect

Public Member Functions

override bool CanActivate (ref string reason)
 
 CurrencyExchanger (Strategy parent, float minRate, float maxRate, float minShare, float maxShare, Currency input, Currency output)
 
 CurrencyExchanger (Strategy parent)
 
- Public Member Functions inherited from Strategies.StrategyEffect
void Load (ConfigNode node)
 
void LoadFromConfig (ConfigNode node)
 
void Register ()
 If active, registers itself in GameEvents.Buffs More...
 
void Save (ConfigNode node)
 
 StrategyEffect (Strategy parent)
 
void Unregister ()
 Removes itself from all events More...
 
void Update ()
 Called once per frame when strategy is active More...
 

Protected Member Functions

override string GetDescription ()
 Description of this effect as set by designer of the GameBuffEffect Can be overridden by the parent GameBuff if required More...
 
override void OnLoadFromConfig (ConfigNode node)
 
override void OnRegister ()
 
override void OnUnregister ()
 
- Protected Member Functions inherited from Strategies.StrategyEffect
virtual void OnLoad (ConfigNode node)
 
virtual void OnSave (ConfigNode node)
 
virtual void OnUpdate ()
 
float ParentLerp (float minValue, float maxValue)
 
string ToPercentage (float percentage, string format="F0")
 

Additional Inherited Members

- Properties inherited from Strategies.StrategyEffect
string Description [get]
 
Strategy Parent [get]
 Parent Strategy that this effect is attached to More...
 

Constructor & Destructor Documentation

Strategies.CurrencyExchanger.CurrencyExchanger ( Strategy  parent,
float  minRate,
float  maxRate,
float  minShare,
float  maxShare,
Currency  input,
Currency  output 
)
inline
Strategies.CurrencyExchanger.CurrencyExchanger ( Strategy  parent)
inline

Member Function Documentation

override bool Strategies.CurrencyExchanger.CanActivate ( ref string  reason)
inlinevirtual

Reimplemented from Strategies.StrategyEffect.

override string Strategies.CurrencyExchanger.GetDescription ( )
inlineprotectedvirtual

Description of this effect as set by designer of the GameBuffEffect Can be overridden by the parent GameBuff if required

Reimplemented from Strategies.StrategyEffect.

override void Strategies.CurrencyExchanger.OnLoadFromConfig ( ConfigNode  node)
inlineprotectedvirtual

Reimplemented from Strategies.StrategyEffect.

override void Strategies.CurrencyExchanger.OnRegister ( )
inlineprotectedvirtual

Reimplemented from Strategies.StrategyEffect.

override void Strategies.CurrencyExchanger.OnUnregister ( )
inlineprotectedvirtual

Reimplemented from Strategies.StrategyEffect.


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