DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс WarmthNotfr
+ Граф наследования:WarmthNotfr:

Защищенные члены

void WarmthNotfr (NotifiersManager manager)
 replaces the original delta of values from NotifierBase
 
override int GetNotifierType ()
 
DSLevelsTemp DetermineLevel (float value, float m_warning_treshold, float m_critical_treshold, float m_empty_treshold, float p_warning_treshold, float p_critical_treshold, float p_empty_treshold)
 
override void DisplayTendency (float delta)
 
float GetObservedValue ()
 

Защищенные данные

ref SimpleMovingAverage< floatm_AverageHeatComfortDeltaBuffer
 

Закрытые данные

const float DEC_TRESHOLD_LOW = -0.01
 
const float DEC_TRESHOLD_MED = -0.12
 
const float DEC_TRESHOLD_HIGH = -0.25
 
const float INC_TRESHOLD_LOW = 0.01
 
const float INC_TRESHOLD_MED = 0.12
 
const float INC_TRESHOLD_HIGH = 0.25
 

Дополнительные унаследованные члены

- Закрытые члены унаследованные от NotifierBase
int CalculateTendency (float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
 
eBadgeLevel DetermineBadgeLevel (float value, float lvl_1, float lvl_2, float lvl_3)
 
void DisplayBadge ()
 
void HideBadge ()
 
float GetObservedValue ()
 

Подробное описание

Конструктор(ы)

◆ WarmthNotfr()

void WarmthNotfr ( NotifiersManager manager)
inlineprotected

replaces the original delta of values from NotifierBase

13 {
15 }
Definition EntityAI.c:95
ref SimpleMovingAverage< float > m_AverageHeatComfortDeltaBuffer
Definition WarmthNotfr.c:10

Перекрестные ссылки m_AverageHeatComfortDeltaBuffer.

Методы

◆ DetermineLevel()

DSLevelsTemp DetermineLevel ( float value,
float m_warning_treshold,
float m_critical_treshold,
float m_empty_treshold,
float p_warning_treshold,
float p_critical_treshold,
float p_empty_treshold )
inlineprotected
23 {
25
26 if (value < 0)
27 {
29 level = DSLevelsTemp.WARNING_MINUS;
31 level = DSLevelsTemp.CRITICAL_MINUS;
33 level = DSLevelsTemp.BLINKING_MINUS;
34 }
35 else
36 {
38 level = DSLevelsTemp.WARNING_PLUS;
40 level = DSLevelsTemp.CRITICAL_PLUS;
42 level = DSLevelsTemp.BLINKING_PLUS;
43 }
44
45 return level;
46 }

Используется в DisplayTendency().

◆ DisplayTendency()

override void DisplayTendency ( float delta)
inlineprotected
49 {
58 );
59
61 m_Player.GetStatHeatComfort().Get(),
68 );
69
71
73 {
74 displayElement.SetTendency(tendency);
75 displayElement.SetSeriousnessLevel(level);
76 }
77 }
DisplayElementBase GetElement(eDisplayElements element_id)
Definition DisplayStatus.c:95
Definition TendencyBacteria.c:2
int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
Definition NotifierBase.c:149
PlayerBase m_Player
Definition NotifierBase.c:6
VirtualHud GetVirtualHud()
Definition NotifierBase.c:38
Definition PlayerConstants.c:2
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
Definition PlayerConstants.c:84
static const float THRESHOLD_HEAT_COMFORT_PLUS_WARNING
Definition PlayerConstants.c:80
static const float THRESHOLD_HEAT_COMFORT_PLUS_EMPTY
Definition PlayerConstants.c:82
static const float THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL
Definition PlayerConstants.c:85
static const float THRESHOLD_HEAT_COMFORT_MINUS_EMPTY
Definition PlayerConstants.c:86
static const float THRESHOLD_HEAT_COMFORT_PLUS_CRITICAL
Definition PlayerConstants.c:81
const float DEC_TRESHOLD_MED
Definition WarmthNotfr.c:4
float GetObservedValue()
Definition WarmthNotfr.c:79
const float INC_TRESHOLD_LOW
Definition WarmthNotfr.c:6
const float DEC_TRESHOLD_HIGH
Definition WarmthNotfr.c:5
const float INC_TRESHOLD_MED
Definition WarmthNotfr.c:7
const float DEC_TRESHOLD_LOW
Definition WarmthNotfr.c:3
const float INC_TRESHOLD_HIGH
Definition WarmthNotfr.c:8
DSLevelsTemp DetermineLevel(float value, float m_warning_treshold, float m_critical_treshold, float m_empty_treshold, float p_warning_treshold, float p_critical_treshold, float p_empty_treshold)
Definition WarmthNotfr.c:22

Перекрестные ссылки NotifierBase::CalculateTendency(), DEC_TRESHOLD_HIGH, DEC_TRESHOLD_LOW, DEC_TRESHOLD_MED, DetermineLevel(), GetElement(), GetObservedValue(), NotifierBase::GetVirtualHud(), INC_TRESHOLD_HIGH, INC_TRESHOLD_LOW, INC_TRESHOLD_MED, NotifierBase::m_Player, PlayerConstants::THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL, PlayerConstants::THRESHOLD_HEAT_COMFORT_MINUS_EMPTY, PlayerConstants::THRESHOLD_HEAT_COMFORT_MINUS_WARNING, PlayerConstants::THRESHOLD_HEAT_COMFORT_PLUS_CRITICAL, PlayerConstants::THRESHOLD_HEAT_COMFORT_PLUS_EMPTY и PlayerConstants::THRESHOLD_HEAT_COMFORT_PLUS_WARNING.

◆ GetNotifierType()

override int GetNotifierType ( )
inlineprotected
18 {
19 return eNotifiers.NTF_WARMTH;
20 }
eNotifiers
Definition NotifiersManager.c:2

◆ GetObservedValue()

float GetObservedValue ( )
inlineprotected
80 {
81 return m_AverageHeatComfortDeltaBuffer.Add(m_Player.m_Environment.GetTargetHeatComfort() - m_Player.GetStatHeatComfort().Get());
82 }

Перекрестные ссылки m_AverageHeatComfortDeltaBuffer и NotifierBase::m_Player.

Используется в DisplayTendency().

Поля

◆ DEC_TRESHOLD_HIGH

const float DEC_TRESHOLD_HIGH = -0.25
private

Используется в DisplayTendency().

◆ DEC_TRESHOLD_LOW

const float DEC_TRESHOLD_LOW = -0.01
private

Используется в DisplayTendency().

◆ DEC_TRESHOLD_MED

const float DEC_TRESHOLD_MED = -0.12
private

Используется в DisplayTendency().

◆ INC_TRESHOLD_HIGH

const float INC_TRESHOLD_HIGH = 0.25
private

Используется в DisplayTendency().

◆ INC_TRESHOLD_LOW

const float INC_TRESHOLD_LOW = 0.01
private

Используется в DisplayTendency().

◆ INC_TRESHOLD_MED

const float INC_TRESHOLD_MED = 0.12
private

Используется в DisplayTendency().

◆ m_AverageHeatComfortDeltaBuffer

ref SimpleMovingAverage<float> m_AverageHeatComfortDeltaBuffer
protected

Используется в GetObservedValue() и WarmthNotfr().


Объявления и описания членов класса находятся в файле: