PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
NotifierBase Class Reference

Private Member Functions

void NotifierBase (NotifiersManager manager)
 
bool IsTimeToTick (int current_time)
 
VirtualHud GetVirtualHud ()
 
int GetNotifierType ()
 
string GetName ()
 
bool IsActive ()
 
void SetActive (bool state)
 
void DisplayTendency (float delta)
 
void AddToCyclicBuffer (float value)
 
float ReadFromCyclicBuffer (int index)
 
float GetDeltaAvaraged ()
 
void SmoothOutFloatValues (array< float > values)
 
void OnTick (float current_time)
 
protected int CalculateTendency (float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
 
protected eBadgeLevel DetermineBadgeLevel (float value, float lvl_1, float lvl_2, float lvl_3)
 
protected void DisplayBadge ()
 
protected void HideBadge ()
 
protected float GetObservedValue ()
 

Private Attributes

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

Constructor & Destructor Documentation

◆ NotifierBase()

Member Function Documentation

◆ AddToCyclicBuffer()

void AddToCyclicBuffer ( float  value)
inlineprivate

◆ CalculateTendency()

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

◆ DetermineBadgeLevel()

protected eBadgeLevel DetermineBadgeLevel ( float  value,
float  lvl_1,
float  lvl_2,
float  lvl_3 
)
inlineprivate

◆ DisplayBadge()

protected void DisplayBadge ( )
private

Referenced by OnTick().

◆ DisplayTendency()

void DisplayTendency ( float  delta)
private

Referenced by OnTick().

◆ GetDeltaAvaraged()

float GetDeltaAvaraged ( )
inlineprivate

◆ GetName()

string GetName ( )
inlineprivate

◆ GetNotifierType()

int GetNotifierType ( )
inlineprivate

References m_Type.

Referenced by NotifierBase().

◆ GetObservedValue()

protected float GetObservedValue ( )
inlineprivate

Referenced by OnTick().

◆ GetVirtualHud()

◆ HideBadge()

protected void HideBadge ( )
private

Referenced by SetActive().

◆ IsActive()

bool IsActive ( )
inlineprivate

References m_Active.

◆ IsTimeToTick()

bool IsTimeToTick ( int  current_time)
inlineprivate

◆ OnTick()

◆ ReadFromCyclicBuffer()

float ReadFromCyclicBuffer ( int  index)
inlineprivate

◆ SetActive()

void SetActive ( bool  state)
inlineprivate

References HideBadge(), and m_Active.

Referenced by ActivateByType(), and DeactivateByType().

◆ SmoothOutFloatValues()

void SmoothOutFloatValues ( array< float values)
inlineprivate

Field Documentation

◆ m_Active

◆ m_DeltaT

float m_DeltaT
private

◆ m_FirstPass

bool m_FirstPass = true
private

Referenced by GetDeltaAvaraged().

◆ m_LastMA

float m_LastMA
private

Referenced by GetDeltaAvaraged().

◆ m_LastTendency

float m_LastTendency
private

◆ m_Manager

NotifiersManager m_Manager
private

Referenced by NotifierBase().

◆ m_ModulePlayerStatus

PluginPlayerStatus m_ModulePlayerStatus
private

Referenced by NotifierBase().

◆ m_Player

◆ m_ShowTendency

bool m_ShowTendency
private

Referenced by AddToCyclicBuffer(), and OnTick().

◆ m_TendencyBuffer

float m_TendencyBuffer[TENDENCY_BUFFER_SIZE]
private

◆ m_TendencyBufferSize

◆ m_TendencyBufferWriteIterator

int m_TendencyBufferWriteIterator
private

◆ m_TickInterval

int m_TickInterval
private

◆ m_TickIntervalLastTick

int m_TickIntervalLastTick
private

Referenced by IsTimeToTick(), and OnTick().

◆ m_Timer1

ref Timer m_Timer1
private

◆ m_Type

int m_Type
private

Referenced by GetNotifierType().

◆ TENDENCY_BUFFER_SIZE

const int TENDENCY_BUFFER_SIZE = 30
private

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