DayZ 1.24
Loading...
Searching...
No Matches
DisplayElementTendency Class Reference

Private Member Functions

void TendencyBacteria (PlayerBase player)
 
void TendencyBlood (PlayerBase player)
 
void TendencyHealth (PlayerBase player)
 
void TendencyHunger (PlayerBase player)
 
void TendencyTemperature (PlayerBase player)
 
override int TranslateLevelToStatus (int level)
 
void TendencyThirst (PlayerBase player)
 

Detailed Description

Definition at line 1 of file TendencyBacteria.c.

Member Function Documentation

◆ TendencyBacteria()

void DisplayElementTendency::TendencyBacteria ( PlayerBase player)
inlineprivate

Definition at line 3 of file TendencyBacteria.c.

4 {
5 m_Type = eDisplayElements.DELM_TDCY_BACTERIA;
7 }
eBleedingSourceType m_Type
const int NTFKEY_BACTERIA
Definition _constants.c:45
string m_Key
Definition EnEntity.c:804

References m_Key, m_Type, and NTFKEY_BACTERIA.

◆ TendencyBlood()

void DisplayElementTendency::TendencyBlood ( PlayerBase player)
inlineprivate

Definition at line 3 of file TendencyBlood.c.

4 {
5 m_Type = eDisplayElements.DELM_TDCY_BLOOD;
7 }
const int NTFKEY_BLEEDISH
Definition _constants.c:42

References m_Key, m_Type, and NTFKEY_BLEEDISH.

◆ TendencyHealth()

void DisplayElementTendency::TendencyHealth ( PlayerBase player)
inlineprivate

Definition at line 3 of file TendencyHealth.c.

4 {
5 m_Type = eDisplayElements.DELM_TDCY_HEALTH;
7 }
const int NTFKEY_SICK
Definition _constants.c:40

References m_Key, m_Type, and NTFKEY_SICK.

◆ TendencyHunger()

void DisplayElementTendency::TendencyHunger ( PlayerBase player)
inlineprivate

Definition at line 3 of file TendencyHunger.c.

4 {
5 m_Type = eDisplayElements.DELM_TDCY_ENERGY;
7 }
const int NTFKEY_HUNGRY
Definition _constants.c:34

References m_Key, m_Type, and NTFKEY_HUNGRY.

◆ TendencyTemperature()

void DisplayElementTendency::TendencyTemperature ( PlayerBase player)
inlineprivate

Definition at line 3 of file TendencyTemperature.c.

4 {
5 TENDENCY_MASK = 7;// 3 bits
6 SERIOUSNESS_BIT_MASK = 7;// 3 bits
7 SERIOUSNESS_BIT_OFFSET = 3;//3 bit offset
8 NUM_OF_BITS = 6;
9
10 m_Type = eDisplayElements.DELM_TDCY_TEMPERATURE;
12 }
const int NTFKEY_FEVERISH
Definition _constants.c:39

References m_Key, m_Type, and NTFKEY_FEVERISH.

◆ TendencyThirst()

void DisplayElementTendency::TendencyThirst ( PlayerBase player)
inlineprivate

Definition at line 3 of file TendencyThirst.c.

4 {
5 m_Type = eDisplayElements.DELM_TDCY_WATER;
7 }
enum eBadgeLevel NTFKEY_THIRSTY

References m_Key, m_Type, and NTFKEY_THIRSTY.

◆ TranslateLevelToStatus()

override int DisplayElementTendency::TranslateLevelToStatus ( int level)
inlineprivate

Definition at line 14 of file TendencyTemperature.c.

15 {
16 if (level == DSLevelsTemp.WARNING_PLUS) return 2;
17 if (level == DSLevelsTemp.CRITICAL_PLUS) return 3;
18 if (level == DSLevelsTemp.BLINKING_PLUS) return 4;
19 if (level == DSLevelsTemp.WARNING_MINUS) return 5;
20 if (level == DSLevelsTemp.CRITICAL_MINUS) return 6;
21 if (level == DSLevelsTemp.BLINKING_MINUS) return 7;
22 return 1;
23 }

Referenced by DisplayElementBase::UpdateHUD().


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