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

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

void HungerNotfr (NotifiersManager manager)
 
override int GetNotifierType ()
 
override void DisplayTendency (float delta)
 
override void DisplayBadge ()
 
override void HideBadge ()
 
override float GetObservedValue ()
 

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

const float DEC_TRESHOLD_LOW = 0
 
const float DEC_TRESHOLD_MED = -0.35
 
const float DEC_TRESHOLD_HIGH = -0.57
 
const float INC_TRESHOLD_LOW = 0
 
const float INC_TRESHOLD_MED = 0.35
 
const float INC_TRESHOLD_HIGH = 0.57
 

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

- Закрытые члены унаследованные от 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 ()
 

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

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

◆ HungerNotfr()

void HungerNotfr ( NotifiersManager manager)
inlineprotected
11 {
12 }

Методы

◆ DisplayBadge()

override void DisplayBadge ( )
inlineprotected
47 {
48
49 }

◆ DisplayTendency()

override void DisplayTendency ( float delta)
inlineprotected
20 {
21 //PrintString("delta:"+delta.ToString());
23 //GetVirtualHud().SetStatus(eDisplayElements.DELM_TDCY_ENERGY,tendency);
24
25 //DSLevels level = DetermineLevel( GetObservedValue(), PlayerConstants.THRESHOLD_ENERGY_WARNING, PlayerConstants.THRESHOLD_ENERGY_CRITICAL, PlayerConstants.THRESHOLD_ENERGY_BLINKING, PlayerConstants.THRESHOLD_ENERGY_EXTRA );
26
27 EStatLevels energy_level = m_Player.GetStatLevelEnergy();
29
30 if( dis_elm )
31 {
32 dis_elm.SetTendency(tendency);
33 dis_elm.SetSeriousnessLevel(energy_level);
34
35 }
36
37 /*
38 Print("-----------------------------------------------------------");
39 Print("water:"+ typename.EnumToString(EStatLevels,m_Player.GetStatLevelWater()));
40 Print("energy:"+ typename.EnumToString(EStatLevels,m_Player.GetStatLevelEnergy()));
41 Print("health:"+ typename.EnumToString(EStatLevels,m_Player.GetStatLevelHealth()));
42 Print("blood:"+ typename.EnumToString(EStatLevels,m_Player.GetStatLevelBlood()));
43 */
44 }
DisplayElementBase GetElement(eDisplayElements element_id)
Definition DisplayStatus.c:95
EStatLevels
Definition EStatLevels.c:2
Definition TendencyBacteria.c:2
const float DEC_TRESHOLD_MED
Definition HungerNotfr.c:4
const float INC_TRESHOLD_LOW
Definition HungerNotfr.c:6
const float DEC_TRESHOLD_HIGH
Definition HungerNotfr.c:5
const float INC_TRESHOLD_MED
Definition HungerNotfr.c:7
const float DEC_TRESHOLD_LOW
Definition HungerNotfr.c:3
const float INC_TRESHOLD_HIGH
Definition HungerNotfr.c:8
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 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 ( )
inlineprotected
15 {
16 return eNotifiers.NTF_HUNGRY;
17 }
eNotifiers
Definition NotifiersManager.c:2

◆ GetObservedValue()

override float GetObservedValue ( )
inlineprotected
57 {
58 return m_Player.GetStatEnergy().Get();
59 }

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

◆ HideBadge()

override void HideBadge ( )
inlineprotected
52 {
53 }

Поля

◆ DEC_TRESHOLD_HIGH

const float DEC_TRESHOLD_HIGH = -0.57
protected

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

◆ DEC_TRESHOLD_LOW

const float DEC_TRESHOLD_LOW = 0
protected

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

◆ DEC_TRESHOLD_MED

const float DEC_TRESHOLD_MED = -0.35
protected

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

◆ INC_TRESHOLD_HIGH

const float INC_TRESHOLD_HIGH = 0.57
protected

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

◆ INC_TRESHOLD_LOW

const float INC_TRESHOLD_LOW = 0
protected

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

◆ INC_TRESHOLD_MED

const float INC_TRESHOLD_MED = 0.35
protected

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


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