DayZ 1.24
|
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 () |
void | HideBadge () |
float | GetObservedValue () |
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) |
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 |
Definition at line 1 of file NotifierBase.c.
|
inlineprivate |
Definition at line 31 of file NotifierBase.c.
References GetNotifierType(), GetPlugin(), m_Active, m_Manager, m_ModulePlayerStatus, m_Player, and m_TickInterval.
Definition at line 79 of file NotifierBase.c.
References m_ShowTendency, m_TendencyBuffer, m_TendencyBufferSize, and m_TendencyBufferWriteIterator.
Referenced by OnTick().
|
inlineprotected |
Definition at line 167 of file NotifierBase.c.
References TENDENCY_DEC_HIGH, TENDENCY_DEC_LOW, TENDENCY_DEC_MED, TENDENCY_INC_HIGH, TENDENCY_INC_LOW, TENDENCY_INC_MED, and TENDENCY_STABLE.
Referenced by BloodNotfr::DisplayTendency(), HealthNotfr::DisplayTendency(), HungerNotfr::DisplayTendency(), ThirstNotfr::DisplayTendency(), and WarmthNotfr::DisplayTendency().
|
inlineprotected |
Definition at line 181 of file NotifierBase.c.
Referenced by InjuredLegNotfr::DisplayBadge(), and StuffedNotfr::DisplayBadge().
|
inlineprotected |
|
inlineprivate |
Definition at line 98 of file NotifierBase.c.
References m_FirstPass, m_LastMA, m_TendencyBufferSize, and ReadFromCyclicBuffer().
Referenced by OnTick().
|
inlineprivate |
Definition at line 59 of file NotifierBase.c.
|
inlineprivate |
|
inlineprotected |
|
inlineprivate |
Definition at line 49 of file NotifierBase.c.
References m_Player.
Referenced by BleedingNotfr::DisplayBadge(), FracturedLegNotfr::DisplayBadge(), HeartbeatNotfr::DisplayBadge(), InjuredLegNotfr::DisplayBadge(), PillsNotfr::DisplayBadge(), SickNotfr::DisplayBadge(), StuffedNotfr::DisplayBadge(), WetnessNotfr::DisplayBadge(), BloodNotfr::DisplayTendency(), HealthNotfr::DisplayTendency(), HungerNotfr::DisplayTendency(), ThirstNotfr::DisplayTendency(), WarmthNotfr::DisplayTendency(), BleedingNotfr::HideBadge(), FracturedLegNotfr::HideBadge(), HeartbeatNotfr::HideBadge(), InjuredLegNotfr::HideBadge(), PillsNotfr::HideBadge(), SickNotfr::HideBadge(), StuffedNotfr::HideBadge(), and WetnessNotfr::HideBadge().
|
inlineprotected |
|
inlineprivate |
Definition at line 43 of file NotifierBase.c.
References m_TickInterval, and m_TickIntervalLastTick.
Definition at line 152 of file NotifierBase.c.
References AddToCyclicBuffer(), DisplayBadge(), DisplayTendency(), GetDeltaAvaraged(), GetObservedValue(), m_ShowTendency, and m_TickIntervalLastTick.
Definition at line 90 of file NotifierBase.c.
References m_TendencyBuffer, m_TendencyBufferSize, and m_TendencyBufferWriteIterator.
Referenced by GetDeltaAvaraged().
Definition at line 69 of file NotifierBase.c.
References HideBadge(), and m_Active.
Referenced by ActivateByType(), and DeactivateByType().
Definition at line 136 of file NotifierBase.c.
|
private |
Definition at line 12 of file NotifierBase.c.
Referenced by BleedingNotfr::BleedingNotfr(), FeverNotfr::FeverNotfr(), FracturedLegNotfr::FracturedLegNotfr(), HeartbeatNotfr::HeartbeatNotfr(), InjuredLegNotfr::InjuredLegNotfr(), IsActive(), NotifierBase(), PillsNotfr::PillsNotfr(), SetActive(), SickNotfr::SickNotfr(), StuffedNotfr::StuffedNotfr(), and WetnessNotfr::WetnessNotfr().
|
private |
Definition at line 4 of file NotifierBase.c.
Definition at line 26 of file NotifierBase.c.
Referenced by GetDeltaAvaraged().
|
private |
Definition at line 25 of file NotifierBase.c.
Referenced by GetDeltaAvaraged().
|
private |
Definition at line 24 of file NotifierBase.c.
|
private |
Definition at line 8 of file NotifierBase.c.
Referenced by NotifierBase().
|
private |
Definition at line 29 of file NotifierBase.c.
Referenced by NotifierBase().
|
private |
Definition at line 6 of file NotifierBase.c.
Referenced by HeartbeatNotfr::DisplayBadge(), InjuredLegNotfr::DisplayBadge(), StuffedNotfr::DisplayBadge(), ThirstNotfr::DisplayBadge(), BloodNotfr::DisplayTendency(), HealthNotfr::DisplayTendency(), HungerNotfr::DisplayTendency(), ThirstNotfr::DisplayTendency(), BloodNotfr::GetObservedValue(), HealthNotfr::GetObservedValue(), HungerNotfr::GetObservedValue(), ThirstNotfr::GetObservedValue(), WarmthNotfr::GetObservedValue(), GetVirtualHud(), and NotifierBase().
|
private |
Definition at line 11 of file NotifierBase.c.
Referenced by AddToCyclicBuffer(), and OnTick().
|
private |
Definition at line 22 of file NotifierBase.c.
Referenced by AddToCyclicBuffer(), and ReadFromCyclicBuffer().
|
private |
Definition at line 9 of file NotifierBase.c.
Referenced by AddToCyclicBuffer(), BleedingNotfr::BleedingNotfr(), GetDeltaAvaraged(), HealthNotfr::HealthNotfr(), ReadFromCyclicBuffer(), and WarmthNotfr::WarmthNotfr().
|
private |
Definition at line 23 of file NotifierBase.c.
Referenced by AddToCyclicBuffer(), and ReadFromCyclicBuffer().
|
private |
Definition at line 20 of file NotifierBase.c.
Referenced by HealthNotfr::HealthNotfr(), IsTimeToTick(), and NotifierBase().
|
private |
Definition at line 21 of file NotifierBase.c.
Referenced by IsTimeToTick(), and OnTick().
Definition at line 5 of file NotifierBase.c.
|
private |
Definition at line 7 of file NotifierBase.c.
Referenced by GetNotifierType().
Definition at line 10 of file NotifierBase.c.