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

Enumerations

enum  eNotifiers {
  NTF_HEALTHY , NTF_BLEEDISH , NTF_HUNGRY , NTF_THIRSTY ,
  NTF_STUFFED , NTF_SICK , NTF_WETNESS , NTF_WARMTH ,
  NTF_FEVERISH , NTF_BLOOD , NTF_LIVES , NTF_STAMINA ,
  NTF_PILLS , NTF_HEARTBEAT , NTF_FRACTURE , NTF_LEGS ,
  NTF_COUNT
}
 

Functions

void NotifiersManager (PlayerBase player)
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
void RegisterItself (int notifier_id, NotifierBase modifier)
 
PlayerBase GetPlayer ()
 
VirtualHud GetVirtualHud ()
 
NotifierBase FindNotifier (int type)
 
void ActivateByType (int notifier, bool triggerEvent=true)
 
void DeactivateByType (int notifier, bool triggerEvent=true)
 
void OnScheduledTick ()
 
void TickNotifiers ()
 

Variables

enum eNotifiers MAX_COUNT = 64
 
ref array< ref NotifierBasem_Notifiers
 
ref NotifierBase m_NotifiersStatic [MAX_COUNT]
 
PlayerBase m_Player
 
ref VirtualHud m_VirtualHud
 
int m_MinTickTime
 
string m_System = "Notifiers"
 

Enumeration Type Documentation

◆ eNotifiers

enum eNotifiers
Enumerator
NTF_HEALTHY 
NTF_BLEEDISH 
NTF_HUNGRY 
NTF_THIRSTY 
NTF_STUFFED 
NTF_SICK 
NTF_WETNESS 
NTF_WARMTH 
NTF_FEVERISH 
NTF_BLOOD 
NTF_LIVES 
NTF_STAMINA 
NTF_PILLS 
NTF_HEARTBEAT 
NTF_FRACTURE 
NTF_LEGS 
NTF_COUNT 

Function Documentation

◆ ActivateByType()

void ActivateByType ( int  notifier,
bool  triggerEvent = true 
)

◆ DeactivateByType()

void DeactivateByType ( int  notifier,
bool  triggerEvent = true 
)

◆ FindNotifier()

NotifierBase FindNotifier ( int  type)

References m_NotifiersStatic.

Referenced by ActivateByType(), and DeactivateByType().

◆ GetPlayer()

PlayerBase GetPlayer ( )

References m_Player.

◆ GetVirtualHud()

◆ Init()

void Init ( )

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

References m_Notifiers.

◆ NotifiersManager()

void NotifiersManager ( PlayerBase  player)

◆ OnScheduledTick()

void OnScheduledTick ( )

References GetPlayer(), and TickNotifiers().

Referenced by ManBase::OnTick().

◆ RegisterItself()

void RegisterItself ( int  notifier_id,
NotifierBase  modifier 
)

References Error(), m_NotifiersStatic, and MAX_COUNT.

◆ TickNotifiers()

void TickNotifiers ( )

References GetGame(), CGame::GetTime(), and m_Notifiers.

Referenced by OnScheduledTick().

Variable Documentation

◆ m_MinTickTime

int m_MinTickTime

Referenced by NotifiersManager().

◆ m_Notifiers

◆ m_NotifiersStatic

ref NotifierBase m_NotifiersStatic[MAX_COUNT]

Referenced by FindNotifier(), and RegisterItself().

◆ m_Player

PlayerBase m_Player

◆ m_System

string m_System = "Notifiers"

◆ m_VirtualHud

◆ MAX_COUNT

enum eNotifiers MAX_COUNT = 64

Referenced by RegisterItself().