Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
NotifierBase Class Reference
Inheritance diagram for NotifierBase:
BleedingNotfr BloodNotfr FeverNotfr FracturedLegNotfr HealthNotfr HeartbeatNotfr HungerNotfr InjuredLegNotfr PillsNotfr SickNotfr StuffedNotfr ThirstNotfr WarmthNotfr WetnessNotfr

Protected Member Functions

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 ()
float GetObservedValue ()
void HideBadge ()

Private Member Functions

void NotifierBase (NotifiersManager manager)
void AddToCyclicBuffer (float value)
void DisplayTendency (float delta)
float GetDeltaAvaraged ()
string GetName ()
int GetNotifierType ()
VirtualHud GetVirtualHud ()
bool IsActive ()
bool IsTimeToTick (int current_time)
void OnTick (float current_Time)
void OnTick (int currentTime)
float ReadFromCyclicBuffer (int index)
void SetActive (bool state)
void SmoothOutFloatValues (array< float > values)

Private Attributes

bool m_Active
float m_DeltaT
bool m_FirstPass = true
float m_LastMA
float m_LastTendency
NotifiersManager m_Manager
PluginPlayerStatus m_ModulePlayerStatus
PlayerBase m_Player
bool m_ShowTendency
float m_TendencyBuffer [TENDENCY_BUFFER_SIZE]
int m_TendencyBufferSize = 3
int m_TendencyBufferWriteIterator
int m_TickInterval
int m_TickIntervalLastTick
ref Timer m_Timer1
int m_Type
const int TENDENCY_BUFFER_SIZE = 30

Detailed Description

Definition at line 1 of file notifierbase.c.

Constructor & Destructor Documentation

◆ NotifierBase()

Member Function Documentation

◆ AddToCyclicBuffer()

void AddToCyclicBuffer ( float value)
inlineprivate

Definition at line 78 of file notifierbase.c.

References m_ShowTendency, m_TendencyBuffer, m_TendencyBufferSize, and m_TendencyBufferWriteIterator.

Referenced by OnTick().

◆ CalculateTendency()

int CalculateTendency ( float delta,
float inctresholdlow,
float inctresholdmed,
float inctresholdhigh,
float dectresholdlow,
float dectresholdmed,
float dectresholdhigh )
inlineprotected

◆ DetermineBadgeLevel()

eBadgeLevel DetermineBadgeLevel ( float value,
float lvl_1,
float lvl_2,
float lvl_3 )
inlineprotected

Definition at line 186 of file notifierbase.c.

Referenced by InjuredLegNotfr::DisplayBadge(), and StuffedNotfr::DisplayBadge().

◆ DisplayBadge()

void DisplayBadge ( )
protected

Referenced by OnTick().

◆ DisplayTendency()

void DisplayTendency ( float delta)
private

Referenced by OnTick().

◆ GetDeltaAvaraged()

float GetDeltaAvaraged ( )
inlineprivate

Definition at line 100 of file notifierbase.c.

References m_FirstPass, m_LastMA, m_TendencyBufferSize, and ReadFromCyclicBuffer().

Referenced by OnTick().

◆ GetName()

string GetName ( )
inlineprivate

Definition at line 59 of file notifierbase.c.

◆ GetNotifierType()

int GetNotifierType ( )
inlineprivate

Definition at line 54 of file notifierbase.c.

References m_Type.

Referenced by NotifierBase().

◆ GetObservedValue()

float GetObservedValue ( )
inlineprotected

Definition at line 203 of file notifierbase.c.

Referenced by OnTick().

◆ GetVirtualHud()

◆ HideBadge()

void HideBadge ( )
protected

Referenced by SetActive().

◆ IsActive()

bool IsActive ( )
inlineprivate

Definition at line 64 of file notifierbase.c.

References m_Active.

Referenced by TickNotifiers().

◆ IsTimeToTick()

bool IsTimeToTick ( int current_time)
inlineprivate

Definition at line 32 of file notifierbase.c.

References ErrorEx, m_TickInterval, and m_TickIntervalLastTick.

Referenced by TickNotifiers().

◆ OnTick() [1/2]

void OnTick ( float current_Time)
inlineprivate

Definition at line 147 of file notifierbase.c.

References OnTick().

Referenced by OnTick(), and TickNotifiers().

◆ OnTick() [2/2]

void OnTick ( int currentTime)
inlineprivate

◆ ReadFromCyclicBuffer()

float ReadFromCyclicBuffer ( int index)
inlineprivate

Definition at line 89 of file notifierbase.c.

References m_TendencyBuffer, m_TendencyBufferSize, and m_TendencyBufferWriteIterator.

Referenced by GetDeltaAvaraged().

◆ SetActive()

void SetActive ( bool state)
inlineprivate

Definition at line 69 of file notifierbase.c.

References HideBadge(), and m_Active.

Referenced by ActivateByType(), and DeactivateByType().

◆ SmoothOutFloatValues()

void SmoothOutFloatValues ( array< float > values)
inlineprivate

Definition at line 129 of file notifierbase.c.

Field Documentation

◆ m_Active

◆ m_DeltaT

float m_DeltaT
private

Definition at line 3 of file notifierbase.c.

◆ m_FirstPass

bool m_FirstPass = true
private

Definition at line 18 of file notifierbase.c.

Referenced by GetDeltaAvaraged().

◆ m_LastMA

float m_LastMA
private

Definition at line 17 of file notifierbase.c.

Referenced by GetDeltaAvaraged().

◆ m_LastTendency

float m_LastTendency
private

Definition at line 16 of file notifierbase.c.

◆ m_Manager

NotifiersManager m_Manager
private

Definition at line 7 of file notifierbase.c.

Referenced by NotifierBase().

◆ m_ModulePlayerStatus

PluginPlayerStatus m_ModulePlayerStatus
private

Definition at line 20 of file notifierbase.c.

Referenced by NotifierBase().

◆ m_Player

◆ m_ShowTendency

bool m_ShowTendency
private

Definition at line 10 of file notifierbase.c.

Referenced by AddToCyclicBuffer(), and OnTick().

◆ m_TendencyBuffer

float m_TendencyBuffer[TENDENCY_BUFFER_SIZE]
private

Definition at line 14 of file notifierbase.c.

Referenced by AddToCyclicBuffer(), and ReadFromCyclicBuffer().

◆ m_TendencyBufferSize

int m_TendencyBufferSize = 3
private

◆ m_TendencyBufferWriteIterator

int m_TendencyBufferWriteIterator
private

Definition at line 15 of file notifierbase.c.

Referenced by AddToCyclicBuffer(), and ReadFromCyclicBuffer().

◆ m_TickInterval

int m_TickInterval
private

Definition at line 12 of file notifierbase.c.

Referenced by HealthNotfr::HealthNotfr(), NotifierBase(), and IsTimeToTick().

◆ m_TickIntervalLastTick

int m_TickIntervalLastTick
private

Definition at line 13 of file notifierbase.c.

Referenced by IsTimeToTick(), and OnTick().

◆ m_Timer1

ref Timer m_Timer1
private

Definition at line 4 of file notifierbase.c.

◆ m_Type

int m_Type
private

Definition at line 6 of file notifierbase.c.

Referenced by GetNotifierType().

◆ TENDENCY_BUFFER_SIZE

const int TENDENCY_BUFFER_SIZE = 30
private

Definition at line 9 of file notifierbase.c.


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/classes/playernotifiers/notifierbase.c