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

Private Member Functions

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

Private Attributes

private float m_Time
 
private float m_NextEvent
 
private float m_ExhaustionTimer
 
private bool m_Exhaustion
 

Static Private Attributes

static const int AGENT_THRESHOLD_ACTIVATE = 60
 
static const int AGENT_THRESHOLD_DEACTIVATE = 20
 
static const int CHANCE_OF_VOMIT = 10
 
static const int CHANCE_OF_VOMIT_AGENT = 20
 
static const int WATER_DRAIN_FROM_VOMIT = 450
 
static const int ENERGY_DRAIN_FROM_VOMIT = 310
 
static const float STOMACH_MIN_VOLUME = 200
 
static const float EVENT_INTERVAL_MIN = 12
 
static const float EVENT_INTERVAL_MAX = 18
 

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 = 60
staticprivate

Referenced by ActivateCondition(), and GetDebugText().

◆ AGENT_THRESHOLD_DEACTIVATE

const int AGENT_THRESHOLD_DEACTIVATE = 20
staticprivate

◆ CHANCE_OF_VOMIT

const int CHANCE_OF_VOMIT = 10
staticprivate

Referenced by OnTick().

◆ CHANCE_OF_VOMIT_AGENT

const int CHANCE_OF_VOMIT_AGENT = 20
staticprivate

Referenced by OnTick().

◆ ENERGY_DRAIN_FROM_VOMIT

const int ENERGY_DRAIN_FROM_VOMIT = 310
staticprivate

Referenced by OnTick().

◆ EVENT_INTERVAL_MAX

const float EVENT_INTERVAL_MAX = 18
staticprivate

Referenced by OnTick().

◆ EVENT_INTERVAL_MIN

const float EVENT_INTERVAL_MIN = 12
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().

◆ m_NextEvent

private float m_NextEvent
private

Referenced by OnTick().

◆ m_Time

private float m_Time
private

Referenced by 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().


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