Data Structures | |
| class | StaminaConsumers | 
| class | StaminaModifierExponential | 
| class | StaminaHandler | 
Enumerations | |
| enum | EStaminaMultiplierTypes | 
Functions | |
| void | StaminaConsumer (float threshold, float threshold2, bool state) | 
| bool | GetState () | 
| returns one of STATE_...   | |
| void | SetState (bool state) | 
| float | GetActivationThreshold () | 
| void | SetActivationThreshold (float threshold) | 
| float | GetDrainThreshold () | 
| void | SetDrainThreshold (float threshold) | 
| void | StaminaConsumers () | 
| void | RegisterConsumer (EStaminaConsumers consumer, float threshold, float depletion_threshold=-1) | 
| bool | HasEnoughStaminaFor (EStaminaConsumers consumer, float curStamina, bool isDepleted, float cap) | 
| bool | HasEnoughStaminaToStart (EStaminaConsumers consumer, float curStamina, bool isDepleted, float cap) | 
| void | StaminaModifier (int type, float min, float max, float cooldown, float startTime=0, float duration=0) | 
| int | GetType () | 
| float | GetMinValue () | 
| void | SetMinValue (float val) | 
| float | GetMaxValue () | 
| void | SetMaxValue (float val) | 
| float | GetCooldown () | 
| void | SetCooldown (float val) | 
| float | GetStartTime () | 
| void | SetStartTime (float val) | 
| float | GetStartTimeAdjustment () | 
| float | GetDuration () | 
| float | GetDurationAdjusted () | 
| bool | IsInUse () | 
| void | SetInUse (bool val) | 
| float | GetRunTime () | 
| void | AddRunTime (float val) | 
| void | SetRunTimeTick (float val) | 
| void | ResetRunTime () | 
| void | StaminaModifiers () | 
| void | RegisterFixed (EStaminaModifiers modifier, float value, float cooldown=GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION) | 
| register single value modifier - depletes stamina for that value   | |
| void | RegisterRandomized (EStaminaModifiers modifier, float minValue, float maxValue, float cooldown=GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION) | 
| register randomized modifier - stamina will be depleted by value between min and max value;   | |
| void | RegisterLinear (EStaminaModifiers modifier, float startValue, float endValue, float startTime, float duration, float cooldown=GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION) | 
| register lerped modifier - depletes stamina for startValue, and, after a startTime, lerps to endValue over duration   | |
| void | RegisterExponential (EStaminaModifiers modifier, float startValue, float exponent, float startTime, float duration, float cooldown=GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION) | 
| register exponential modifier - depletes stamina for startValue, and, after a startTime, lerps from 0 to exponent over duration   | |
| void | RegisterExponentialEx (EStaminaModifiers modifier, SMDataExponential data) | 
| register exponential modifier, extended parameters   | |
| StaminaModifier | GetModifierData (EStaminaModifiers modifier) | 
Variables | |
| MASK = 1 | |
| FATIGUE | |
| EPINEPHRINE | |
| DROWNING | |
| VOMIT_EXHAUSTION | |
| DISEASE_PNEUMONIA | |
| m_ActivationThreshold | |
| protected float m_DrainThreshold protected bool | m_State | 
| protected ref map< EStaminaConsumers, ref StaminaConsumer > | m_StaminaConsumers | 
| m_InUse = false | |
| int | m_Type | 
| float | m_MinValue | 
| float | m_MaxValue | 
| float | m_Multiplier | 
| float | m_Cooldown | 
| float | m_StartTime | 
| float | m_StartTimeAdjustment | 
| float | m_Duration | 
| float | m_ProgressTime | 
| float | m_Tick | 
| StaminaModifierExponential | FIXED = 0 | 
| const int | RANDOMIZED = 1 | 
| const int | LINEAR = 2 | 
| const int | EXPONENTIAL = 3 | 
| protected ref map< EStaminaModifiers, ref StaminaModifier > | m_StaminaModifiers | 
| void AddRunTime | ( | float | val | ) | 
References m_ProgressTime.
| float GetActivationThreshold | ( | ) | 
References m_ActivationThreshold.
| float GetCooldown | ( | ) | 
References m_Cooldown.
| float GetDrainThreshold | ( | ) | 
| float GetDuration | ( | ) | 
References m_Duration.
| float GetDurationAdjusted | ( | ) | 
References m_Duration, and m_Tick.
| float GetMaxValue | ( | ) | 
References m_MaxValue.
| float GetMinValue | ( | ) | 
References m_MinValue.
| StaminaModifier GetModifierData | ( | EStaminaModifiers | modifier | ) | 
References m_StaminaModifiers, and StaminaModifier().
| float GetRunTime | ( | ) | 
References m_ProgressTime.
| float GetStartTime | ( | ) | 
References m_StartTime.
| float GetStartTimeAdjustment | ( | ) | 
References m_StartTimeAdjustment.
| bool GetState | ( | ) | 
returns one of STATE_...
returns the state of climb (enum value of ClimbStates);
| bool HasEnoughStaminaFor | ( | EStaminaConsumers | consumer, | 
| float | curStamina, | ||
| bool | isDepleted, | ||
| float | cap | ||
| ) | 
| bool HasEnoughStaminaToStart | ( | EStaminaConsumers | consumer, | 
| float | curStamina, | ||
| bool | isDepleted, | ||
| float | cap | ||
| ) | 
| void RegisterConsumer | ( | EStaminaConsumers | consumer, | 
| float | threshold, | ||
| float | depletion_threshold = -1  | 
        ||
| ) | 
init of StaminaConsumer - threshold, state
| void RegisterExponential | ( | EStaminaModifiers | modifier, | 
| float | startValue, | ||
| float | exponent, | ||
| float | startTime, | ||
| float | duration, | ||
| float | cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION  | 
        ||
| ) | 
register exponential modifier - depletes stamina for startValue, and, after a startTime, lerps from 0 to exponent over duration
References EXPONENTIAL, m_StaminaModifiers, and StaminaModifier().
| void RegisterExponentialEx | ( | EStaminaModifiers | modifier, | 
| SMDataExponential | data | ||
| ) | 
register exponential modifier, extended parameters
References EXPONENTIAL, m_StaminaModifiers, and StaminaModifierExponential::SetData().
| void RegisterFixed | ( | EStaminaModifiers | modifier, | 
| float | value, | ||
| float | cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION  | 
        ||
| ) | 
register single value modifier - depletes stamina for that value
init of StaminaModifier - type and min, max values (min is not relevant for that type)
References FIXED, m_StaminaModifiers, and StaminaModifier().
| void RegisterLinear | ( | EStaminaModifiers | modifier, | 
| float | startValue, | ||
| float | endValue, | ||
| float | startTime, | ||
| float | duration, | ||
| float | cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION  | 
        ||
| ) | 
register lerped modifier - depletes stamina for startValue, and, after a startTime, lerps to endValue over duration
References LINEAR, m_StaminaModifiers, and StaminaModifier().
| void RegisterRandomized | ( | EStaminaModifiers | modifier, | 
| float | minValue, | ||
| float | maxValue, | ||
| float | cooldown = GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION  | 
        ||
| ) | 
register randomized modifier - stamina will be depleted by value between min and max value;
init of StaminaModifier - type, min, max values
References m_StaminaModifiers, RANDOMIZED, and StaminaModifier().
| void ResetRunTime | ( | ) | 
References m_ProgressTime.
| void SetActivationThreshold | ( | float | threshold | ) | 
References m_ActivationThreshold.
| void SetCooldown | ( | float | val | ) | 
References m_Cooldown.
Referenced by HandleFightLogic().
| void SetDrainThreshold | ( | float | threshold | ) | 
| void SetMaxValue | ( | float | val | ) | 
References m_MaxValue.
| void SetMinValue | ( | float | val | ) | 
References m_MinValue.
| void SetStartTime | ( | float | val | ) | 
References m_StartTime.
| void SetState | ( | bool | state | ) | 
References m_State.
Referenced by EEHealthLevelChanged(), EEItemLocationChanged(), FireworksLauncher::OnEventServer(), Anniversary_FireworksLauncher::OnEventServer(), FireworksLauncher::OnFuseIgnitedServer(), OnInventoryEnter(), OnPlacementCancelled(), FireworksLauncher::OnPlacementComplete(), OnPlacementComplete(), OnSteppedOn(), AlarmClock_ColorBase::OnStoreLoad(), FireworksLauncher::OnStoreLoad(), KitchenTimer::OnStoreLoad(), OnStoreLoad(), SetupTrapPlayer(), and StartDeactivate().
References m_ActivationThreshold, and m_State.
Referenced by StaminaConsumers::HasEnoughStaminaFor(), StaminaConsumers::HasEnoughStaminaToStart(), and StaminaConsumers::RegisterConsumer().
| void StaminaConsumers | ( | ) | 
| void StaminaModifier | ( | int | type, | 
| float | min, | ||
| float | max, | ||
| float | cooldown, | ||
| float | startTime = 0,  | 
        ||
| float | duration = 0  | 
        ||
| ) | 
References m_Cooldown, m_Duration, m_MaxValue, m_MinValue, m_StartTimeAdjustment, m_Tick, m_Type, and StaminaModifier().
Referenced by StaminaHandler::DepleteStaminaEx(), GetModifierData(), RegisterExponential(), RegisterFixed(), RegisterLinear(), RegisterRandomized(), StaminaHandler::ResetCooldown(), and StaminaModifier().
| void StaminaModifiers | ( | ) | 
References m_StaminaModifiers.
Referenced by StaminaHandler::RegisterStaminaModifiers().
| DISEASE_PNEUMONIA | 
| @ DROWNING | 
| EPINEPHRINE | 
| const int EXPONENTIAL = 3 | 
Referenced by RegisterExponential(), and RegisterExponentialEx().
| FATIGUE | 
| StaminaModifierExponential FIXED = 0 | 
Referenced by RegisterFixed().
| const int LINEAR = 2 | 
Referenced by RegisterLinear().
| m_ActivationThreshold | 
Referenced by GetActivationThreshold(), SetActivationThreshold(), and StaminaConsumer().
| float m_Cooldown | 
Referenced by GetCooldown(), Init(), SetCooldown(), and StaminaModifier().
| float m_Duration | 
| m_InUse = false | 
Referenced by IsInUse(), and SetInUse().
| float m_MaxValue | 
| float m_MinValue | 
| float m_ProgressTime | 
Referenced by AddRunTime(), GetRunTime(), and ResetRunTime().
| protected ref map<EStaminaConsumers, ref StaminaConsumer> m_StaminaConsumers | 
| protected ref map<EStaminaModifiers, ref StaminaModifier> m_StaminaModifiers | 
| float m_StartTime | 
Referenced by GetStartTime(), and SetStartTime().
| float m_StartTimeAdjustment | 
Referenced by GetStartTimeAdjustment(), Init(), and StaminaModifier().
| float m_Tick | 
| int m_Type | 
| MASK = 1 | 
| const int RANDOMIZED = 1 | 
Referenced by RegisterRandomized().
| VOMIT_EXHAUSTION |