DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
ModuleLifespan Class Reference

#include <ModuleLifespan.h>

Inheritance diagram for ModuleLifespan:
ModuleBase

Private Member Functions

void  ModuleLifespan ()
 
void  ~ModuleLifespan ()
 
void  LoadFromCfg ()
 
void  UpdateLifespanLevelAuto (PlayerBase player, bool force_update=false)
 
void  UpdateLifespanLevelParam (PlayerBase player, string hours_survived, bool force_update=false)
 
private void  UpdateLifespanLevel (PlayerBase player, float player_beard, bool force_update=false)
 
void  SetBloodyHands (PlayerBase player)
 
void  UnSetBloodyHands (PlayerBase player)
 
private void  SetHandsMaterial (PlayerBase player, int material_type)
 
private LifespanLevel  GetLifespanLevel (string player_class, float age)
 
private void  SetPlayerLifespanLevel (PlayerBase player, LifespanLevel level)
 

Private Attributes

private const int  LIFESPAN_MIN = 0
 
private const int  LIFESPAN_MAX = 5
 
private const int  HANDS_OBJECT_SLOT = 7
 
private autoptr map< PlayerBase, LifespanLevel m_PlayerCurrentLevel
 
private autoptr map< string, array< LifespanLevel > >  m_LifespanLevels
 
private autoptr map< string, BloodyHands m_BloodyHands
 

Constructor & Destructor Documentation

void ModuleLifespan::ModuleLifespan ( )
private
void ModuleLifespan::~ModuleLifespan ( )
private

References m_BloodyHands, and m_LifespanLevels.

Member Function Documentation

void ModuleLifespan::LoadFromCfg ( )
private
void ModuleLifespan::UpdateLifespanLevelAuto ( PlayerBase  player,
bool  force_update = false 
)
private
void ModuleLifespan::UpdateLifespanLevelParam ( PlayerBase  player,
string  hours_survived,
bool  force_update = false 
)
private
private void ModuleLifespan::UpdateLifespanLevel ( PlayerBase  player,
float  player_beard,
bool  force_update = false 
)
private
void ModuleLifespan::SetBloodyHands ( PlayerBase  player )
private
void ModuleLifespan::UnSetBloodyHands ( PlayerBase  player )
private
private void ModuleLifespan::SetHandsMaterial ( PlayerBase  player,
int  material_type 
)
private
private LifespanLevel ModuleLifespan::GetLifespanLevel ( string  player_class,
float  age 
)
private
private void ModuleLifespan::SetPlayerLifespanLevel ( PlayerBase  player,
LifespanLevel  level 
)
private

Referenced by UpdateLifespanLevel().

Member Data Documentation

private const int ModuleLifespan::LIFESPAN_MIN = 0
private

Referenced by LoadFromCfg().

private const int ModuleLifespan::LIFESPAN_MAX = 5
private

Referenced by LoadFromCfg().

private const int ModuleLifespan::HANDS_OBJECT_SLOT = 7
private

Referenced by SetHandsMaterial().

private autoptr map<PlayerBase, LifespanLevel> ModuleLifespan::m_PlayerCurrentLevel
private
private autoptr map<string, array<LifespanLevel> > ModuleLifespan::m_LifespanLevels
private
private autoptr map<string, BloodyHands> ModuleLifespan::m_BloodyHands
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)