DayZ 1.24
Loading...
Searching...
No Matches
HungerNotfr Class Reference
Inheritance diagram for HungerNotfr:
[legend]
Collaboration diagram for HungerNotfr:
[legend]

Protected Member Functions

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

Protected Attributes

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
 

Additional Inherited Members

- Private Member Functions inherited from 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 ()
 

Detailed Description

Definition at line 1 of file HungerNotfr.c.

Constructor & Destructor Documentation

◆ HungerNotfr()

void HungerNotfr::HungerNotfr ( NotifiersManager manager)
inlineprotected

Definition at line 10 of file HungerNotfr.c.

11 {
12 }

Member Function Documentation

◆ DisplayBadge()

override void HungerNotfr::DisplayBadge ( )
inlineprotected

Definition at line 46 of file HungerNotfr.c.

47 {
48
49 }

◆ DisplayTendency()

override void HungerNotfr::DisplayTendency ( float delta)
inlineprotected

Definition at line 19 of file HungerNotfr.c.

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)
EStatLevels
Definition EStatLevels.c:2
const float INC_TRESHOLD_MED
Definition HungerNotfr.c:7
const float DEC_TRESHOLD_MED
Definition HungerNotfr.c:4
const float DEC_TRESHOLD_LOW
Definition HungerNotfr.c:3
const float DEC_TRESHOLD_HIGH
Definition HungerNotfr.c:5
const float INC_TRESHOLD_LOW
Definition HungerNotfr.c:6
const float INC_TRESHOLD_HIGH
Definition HungerNotfr.c:8
PlayerBase m_Player
Definition NotifierBase.c:6
VirtualHud GetVirtualHud()
int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)

References NotifierBase::CalculateTendency(), DEC_TRESHOLD_HIGH, DEC_TRESHOLD_LOW, DEC_TRESHOLD_MED, GetElement(), NotifierBase::GetVirtualHud(), INC_TRESHOLD_HIGH, INC_TRESHOLD_LOW, INC_TRESHOLD_MED, and NotifierBase::m_Player.

◆ GetNotifierType()

override int HungerNotfr::GetNotifierType ( )
inlineprotected

Definition at line 14 of file HungerNotfr.c.

15 {
16 return eNotifiers.NTF_HUNGRY;
17 }
eNotifiers

◆ GetObservedValue()

override float HungerNotfr::GetObservedValue ( )
inlineprotected

Definition at line 56 of file HungerNotfr.c.

57 {
58 return m_Player.GetStatEnergy().Get();
59 }

References NotifierBase::m_Player.

◆ HideBadge()

override void HungerNotfr::HideBadge ( )
inlineprotected

Definition at line 51 of file HungerNotfr.c.

52 {
53 }

Member Data Documentation

◆ DEC_TRESHOLD_HIGH

const float HungerNotfr::DEC_TRESHOLD_HIGH = -0.57
protected

Definition at line 5 of file HungerNotfr.c.

Referenced by DisplayTendency().

◆ DEC_TRESHOLD_LOW

const float HungerNotfr::DEC_TRESHOLD_LOW = 0
protected

Definition at line 3 of file HungerNotfr.c.

Referenced by DisplayTendency().

◆ DEC_TRESHOLD_MED

const float HungerNotfr::DEC_TRESHOLD_MED = -0.35
protected

Definition at line 4 of file HungerNotfr.c.

Referenced by DisplayTendency().

◆ INC_TRESHOLD_HIGH

const float HungerNotfr::INC_TRESHOLD_HIGH = 0.57
protected

Definition at line 8 of file HungerNotfr.c.

Referenced by DisplayTendency().

◆ INC_TRESHOLD_LOW

const float HungerNotfr::INC_TRESHOLD_LOW = 0
protected

Definition at line 6 of file HungerNotfr.c.

Referenced by DisplayTendency().

◆ INC_TRESHOLD_MED

const float HungerNotfr::INC_TRESHOLD_MED = 0.35
protected

Definition at line 7 of file HungerNotfr.c.

Referenced by DisplayTendency().


The documentation for this class was generated from the following file: