Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
tendencytemperature.c
Go to the documentation of this file.
1 class TendencyTemperature extends DisplayElementTendency
2 {
3  void TendencyTemperature(PlayerBase player)
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  }
13 
14  override int TranslateLevelToStatus(int level)
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  }
24 }
m_Key
string m_Key
Definition: enentity.c:4
m_Type
eBleedingSourceType m_Type
Definition: bleedingsource.c:25
NTFKEY_FEVERISH
const int NTFKEY_FEVERISH
Definition: _constants.c:39
DisplayElementTendency
Definition: tendencybacteria.c:1
PlayerBase
Definition: playerbaseclient.c:1