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

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

float GetObservedValue ()
 

Закрытые члены

void HealthNotfr (NotifiersManager manager)
 
override int GetNotifierType ()
 
override void DisplayBadge ()
 
override void DisplayTendency (float delta)
 
override void HideBadge ()
 
- Закрытые члены унаследованные от 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 ()
 

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

const float DEC_TRESHOLD_LOW = 0
 
const float DEC_TRESHOLD_MED = -0.7
 
const float DEC_TRESHOLD_HIGH = -1.3
 
const float INC_TRESHOLD_LOW = 0
 
const float INC_TRESHOLD_MED = 0.7
 
const float INC_TRESHOLD_HIGH = 1.3
 

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

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

◆ HealthNotfr()

void HealthNotfr ( NotifiersManager manager)
inlineprivate
19 {
20 m_TickInterval = 3000;
22 }
int m_TickInterval
Definition NotifierBase.c:20
int m_TendencyBufferSize
Definition NotifierBase.c:9

Перекрестные ссылки NotifierBase::m_TendencyBufferSize и NotifierBase::m_TickInterval.

Методы

◆ DisplayBadge()

override void DisplayBadge ( )
inlineprivate
30 {
31 }

◆ DisplayTendency()

override void DisplayTendency ( float delta)
inlineprivate
34 {
36 //PrintString("tendency:" + tendency);
37 //GetVirtualHud().SetStatus(eDisplayElements.DELM_TDCY_HEALTH,tendency);
38
39 //DSLevels level = DetermineLevel( GetObservedValue(), PlayerConstants.THRESHOLD_HEALTH_WARNING, PlayerConstants.THRESHOLD_HEALTH_CRITICAL, PlayerConstants.THRESHOLD_HEALTH_BLINKING, PlayerConstants.THRESHOLD_HEALTH_EXTRA);
40
41 EStatLevels health_level = m_Player.GetStatLevelHealth();
43
44 if( dis_elm )
45 {
46 dis_elm.SetSeriousnessLevel(health_level);
47 dis_elm.SetTendency(tendency);
48 }
49 }
DisplayElementBase GetElement(eDisplayElements element_id)
Definition DisplayStatus.c:95
EStatLevels
Definition EStatLevels.c:2
Definition TendencyBacteria.c:2
const float DEC_TRESHOLD_MED
Definition HealthNotfr.c:11
const float INC_TRESHOLD_LOW
Definition HealthNotfr.c:13
const float DEC_TRESHOLD_HIGH
Definition HealthNotfr.c:12
const float INC_TRESHOLD_MED
Definition HealthNotfr.c:14
const float DEC_TRESHOLD_LOW
Definition HealthNotfr.c:10
const float INC_TRESHOLD_HIGH
Definition HealthNotfr.c:15
int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
Definition NotifierBase.c:171
PlayerBase m_Player
Definition NotifierBase.c:6
VirtualHud GetVirtualHud()
Definition NotifierBase.c:49
Definition EntityAI.c:95

Перекрестные ссылки NotifierBase::CalculateTendency(), DEC_TRESHOLD_HIGH, DEC_TRESHOLD_LOW, DEC_TRESHOLD_MED, GetElement(), NotifierBase::GetVirtualHud(), INC_TRESHOLD_HIGH, INC_TRESHOLD_LOW, INC_TRESHOLD_MED и NotifierBase::m_Player.

◆ GetNotifierType()

override int GetNotifierType ( )
inlineprivate
25 {
26 return eNotifiers.NTF_HEALTHY;
27 }
eNotifiers
Definition NotifiersManager.c:2

◆ GetObservedValue()

float GetObservedValue ( )
inlineprotected
58 {
59 float health = m_Player.GetHealth("","Health");
60 //PrintString("health:" + health);
61 return health;
62 }

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

◆ HideBadge()

override void HideBadge ( )
inlineprivate
52 {
53
55 }

Поля

◆ DEC_TRESHOLD_HIGH

const float DEC_TRESHOLD_HIGH = -1.3
private

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

◆ DEC_TRESHOLD_LOW

const float DEC_TRESHOLD_LOW = 0
private

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

◆ DEC_TRESHOLD_MED

const float DEC_TRESHOLD_MED = -0.7
private

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

◆ INC_TRESHOLD_HIGH

const float INC_TRESHOLD_HIGH = 1.3
private

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

◆ INC_TRESHOLD_LOW

const float INC_TRESHOLD_LOW = 0
private

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

◆ INC_TRESHOLD_MED

const float INC_TRESHOLD_MED = 0.7
private

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


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