PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CholeraMdfr Class Reference

Private Member Functions

override void Init ()
 
override string GetDebugText ()
 
override protected bool ActivateCondition (PlayerBase player)
 
override protected void OnActivate (PlayerBase player)
 
override protected void OnDeactivate (PlayerBase player)
 
override protected bool DeactivateCondition (PlayerBase player)
 
override protected void OnTick (PlayerBase player, float deltaT)
 

Private Attributes

private float m_ExhaustionTimer
 
private bool m_Exhaustion
 

Static Private Attributes

static const int AGENT_THRESHOLD_ACTIVATE = 250
 
static const int AGENT_THRESHOLD_DEACTIVATE = 50
 
static const int CHANCE_OF_VOMIT = 10
 
static const int CHANCE_OF_VOMIT_AGENT = 30
 
static const int WATER_DRAIN_FROM_VOMIT = 450
 
static const int ENERGY_DRAIN_FROM_VOMIT = 310
 
static const float WATER_LOSS_CHOLERA = 0.5
 
static const float WATER_LOSS_CHOLERA_MIN = 0.1
 
static const float STOMACH_MIN_VOLUME = 200
 

Member Function Documentation

◆ ActivateCondition()

override protected bool ActivateCondition ( PlayerBase  player)
inlineprivate

◆ DeactivateCondition()

override protected bool DeactivateCondition ( PlayerBase  player)
inlineprivate

◆ GetDebugText()

override string GetDebugText ( )
inlineprivate

◆ Init()

◆ OnActivate()

override protected void OnActivate ( PlayerBase  player)
inlineprivate

◆ OnDeactivate()

override protected void OnDeactivate ( PlayerBase  player)
inlineprivate

References m_Exhaustion, and m_ExhaustionTimer.

◆ OnTick()

Field Documentation

◆ AGENT_THRESHOLD_ACTIVATE

const int AGENT_THRESHOLD_ACTIVATE = 250
staticprivate

Referenced by ActivateCondition(), and GetDebugText().

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 50
staticprivate

◆ CHANCE_OF_VOMIT

const int CHANCE_OF_VOMIT = 10
staticprivate

Referenced by OnTick().

◆ CHANCE_OF_VOMIT_AGENT

const int CHANCE_OF_VOMIT_AGENT = 30
staticprivate

Referenced by OnTick().

◆ ENERGY_DRAIN_FROM_VOMIT

const int ENERGY_DRAIN_FROM_VOMIT = 310
staticprivate

Referenced by OnTick().

◆ m_Exhaustion

private bool m_Exhaustion
private

Referenced by OnDeactivate(), and OnTick().

◆ m_ExhaustionTimer

private float m_ExhaustionTimer
private

Referenced by OnDeactivate(), and OnTick().

◆ STOMACH_MIN_VOLUME

const float STOMACH_MIN_VOLUME = 200
staticprivate

Referenced by OnTick().

◆ WATER_DRAIN_FROM_VOMIT

const int WATER_DRAIN_FROM_VOMIT = 450
staticprivate

Referenced by OnTick().

◆ WATER_LOSS_CHOLERA

const float WATER_LOSS_CHOLERA = 0.5
staticprivate

Referenced by OnTick().

◆ WATER_LOSS_CHOLERA_MIN

const float WATER_LOSS_CHOLERA_MIN = 0.1
staticprivate

Referenced by OnTick().


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