DayZ 1.24
Loading...
Searching...
No Matches
SoundHandlerBase Class Reference

Private Member Functions

override void Init ()
 
override void Init ()
 
override void Init ()
 
eStaminaState GetStaminaState (eStaminaTendency tendency, eStaminaZones zone)
 

Detailed Description

Definition at line 1 of file HungerSoundHandler.c.

Member Function Documentation

◆ GetStaminaState()

eStaminaState SoundHandlerBase::GetStaminaState ( eStaminaTendency tendency,
eStaminaZones zone )
inlineprivate

Definition at line 61 of file StaminaSoundHandler.c.

62 {
64
66
67 if (zone == eStaminaZones.ZONE1 && tendency == eStaminaTendency.DOWN)
68 stamina_state = eStaminaState.ZONE1_DOWN;
69
70 if (zone == eStaminaZones.ZONE1 && tendency == eStaminaTendency.UP)
72
73 if (zone == eStaminaZones.ZONE2 && tendency == eStaminaTendency.DOWN)
74 stamina_state = eStaminaState.ZONE2_DOWN;
75
76 if (zone == eStaminaZones.ZONE2 && tendency == eStaminaTendency.UP)
78
79 if (zone == eStaminaZones.ZONE0 && tendency == eStaminaTendency.UP)
81
82 if (zone == eStaminaZones.ZONE0 && tendency == eStaminaTendency.DOWN)
83 stamina_state = eStaminaState.ZONE0_DOWN;
84
85 return stamina_state;
86 }
eStaminaZones
Definition EnMath.c:7
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

References Math::Clamp().

◆ Init() [1/3]

override void SoundHandlerBase::Init ( )
inlineprivate

Definition at line 3 of file HungerSoundHandler.c.

4 {
5 m_Id = eSoundHandlers.HUNGER;
6 }
eSoundHandlers
enum eStaminaZones m_Id

References m_Id.

Referenced by SoundHandlerBase().

◆ Init() [2/3]

override void SoundHandlerBase::Init ( )
inlineprivate

Definition at line 3 of file ThirstSoundHandler.c.

4 {
5 m_Id = eSoundHandlers.THIRST;
6 }

References m_Id.

◆ Init() [3/3]

override void SoundHandlerBase::Init ( )
inlineprivate

Definition at line 56 of file StaminaSoundHandler.c.

57 {
58 m_Id = eSoundHandlers.STAMINA;
59 }

References m_Id.


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