DayZ
1.24
Loading...
Searching...
No Matches
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;
11
m_Key
=
NTFKEY_FEVERISH
;
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_Type
eBleedingSourceType m_Type
Definition
BleedingSource.c:25
NTFKEY_FEVERISH
const int NTFKEY_FEVERISH
Definition
_constants.c:39
DisplayElementTendency
Definition
TendencyBacteria.c:2
DisplayElementTendency::TendencyTemperature
void TendencyTemperature(PlayerBase player)
Definition
TendencyTemperature.c:3
DisplayElementTendency::TranslateLevelToStatus
override int TranslateLevelToStatus(int level)
Definition
TendencyTemperature.c:14
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
m_Key
string m_Key
Definition
EnEntity.c:804
scripts
4_World
Classes
VirtualHud
Elements
Tendency
TendencyTemperature.c
Generated by
1.10.0