Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
SoftSkillsManager Class Reference

Protected Member Functions

void SoftSkillsManager (PlayerBase player)
void ~SoftSkillsManager ()
float AddExponentialPrecise (float specialty_weight)
float AddExponentialRough (float specialty_weight)
float AddLinearPrecise (float specialty_weight)
float AddLinearRough (float specialty_weight)
void AddSpecialty (float specialty_weight)
float AddSpecialtyBonus (float base_value, float specialty_weight, bool is_cacomponent=false, float limit_efficiency=2)
float AdjustCraftingTime (float base_time, float specialty_weight, float limit_efficiency=2)
void CreateDebugWindow (bool create)
float GetComponentBonusAfter ()
float GetComponentBonusBefore ()
float GetCoolDownValue ()
float GetGeneralBonusAfter ()
float GetGeneralBonusBefore ()
float GetLastUAValue ()
void GetPreciseRoughLevels ()
PlayerBase GetSoftSkillsPlayer ()
bool GetSoftSkillsState ()
float GetSpecialtyLevel ()
void InitSpecialty (float specialty_level)
bool IsCoolDown ()
bool IsDebug ()
bool IsLinear ()
void ResetDebugWindow ()
void SetBonusAfter (bool is_cacomponent, float adjusted_value)
void SetBonusBefore (bool is_cacomponent, float base_value)
void SetComponentBonusAfter (float component_bonus_after)
void SetComponentBonusBefore (float component_bonus_before)
void SetCoolDown (bool cool_down)
void SetCoolDownValue (float cooldown_value)
void SetGeneralBonusAfter (float general_bonus_after)
void SetGeneralBonusBefore (float general_bonus_before)
void SetIsDebug (bool is_debug)
void SetLastUAValue (float last_ua_value)
void SetLinearState (bool model)
void SetSoftSkillsState (bool state)
void SetSpecialtyLevel (float specialty_level)
void StartCoolDownTimer (float cooldown_value)
void StartSynchTimer ()
void StopSynchTimer ()
float SubtractSpecialtyBonus (float base_value, float specialty_weight, bool is_cacomponent=false, float limit_efficiency=2)
void SynchDebugStats ()
void SynchSpecialtyLevel ()

Protected Attributes

float m_ComponentBonusAfter
float m_ComponentBonusBefore
ref Timer m_CoolDownTimer = new Timer()
float m_CoolDownValue
ref SoftSkillManagerDebug m_DebugWindow
float m_GeneralBonusAfter
float m_GeneralBonusBefore
bool m_IsActive
bool m_IsCoolDown
bool m_IsDebugMode
bool m_IsLinear
float m_LastUAValue
PlayerBase m_Player
float m_PreciseLevel
float m_RoughLevel
float m_SpecialtyLevel
ref Timer m_SynchTimer
int m_UserActionsCounter

Static Protected Attributes

const float COOLDOWN_TIMER = 5
const int DEFAULT_EFFICIENCY = 0
const float PRECISE_WEIGHT_LIMIT = -1
const float ROUGH_WEIGHT_LIMIT = 1

Detailed Description

Definition at line 1 of file softskillsmanager.c.

Constructor & Destructor Documentation

◆ SoftSkillsManager()

void SoftSkillsManager ( PlayerBase player)
inlineprotected

Definition at line 33 of file softskillsmanager.c.

References m_IsActive, m_IsCoolDown, m_IsDebugMode, m_IsLinear, and m_Player.

◆ ~SoftSkillsManager()

void ~SoftSkillsManager ( )
inlineprotected

Definition at line 48 of file softskillsmanager.c.

References m_CoolDownTimer.

Member Function Documentation

◆ AddExponentialPrecise()

float AddExponentialPrecise ( float specialty_weight)
inlineprotected

◆ AddExponentialRough()

float AddExponentialRough ( float specialty_weight)
inlineprotected

◆ AddLinearPrecise()

float AddLinearPrecise ( float specialty_weight)
inlineprotected

◆ AddLinearRough()

float AddLinearRough ( float specialty_weight)
inlineprotected

◆ AddSpecialty()

◆ AddSpecialtyBonus()

float AddSpecialtyBonus ( float base_value,
float specialty_weight,
bool is_cacomponent = false,
float limit_efficiency = 2 )
inlineprotected

◆ AdjustCraftingTime()

float AdjustCraftingTime ( float base_time,
float specialty_weight,
float limit_efficiency = 2 )
inlineprotected

◆ CreateDebugWindow()

void CreateDebugWindow ( bool create)
inlineprotected

◆ GetComponentBonusAfter()

float GetComponentBonusAfter ( )
inlineprotected

Definition at line 483 of file softskillsmanager.c.

References m_ComponentBonusAfter.

◆ GetComponentBonusBefore()

float GetComponentBonusBefore ( )
inlineprotected

Definition at line 471 of file softskillsmanager.c.

References m_ComponentBonusBefore.

◆ GetCoolDownValue()

float GetCoolDownValue ( )
inlineprotected

Definition at line 421 of file softskillsmanager.c.

References m_CoolDownValue.

◆ GetGeneralBonusAfter()

float GetGeneralBonusAfter ( )
inlineprotected

Definition at line 507 of file softskillsmanager.c.

References m_GeneralBonusAfter.

◆ GetGeneralBonusBefore()

float GetGeneralBonusBefore ( )
inlineprotected

Definition at line 495 of file softskillsmanager.c.

References m_GeneralBonusBefore.

◆ GetLastUAValue()

float GetLastUAValue ( )
inlineprotected

Definition at line 427 of file softskillsmanager.c.

References m_LastUAValue.

◆ GetPreciseRoughLevels()

void GetPreciseRoughLevels ( )
inlineprotected

◆ GetSoftSkillsPlayer()

PlayerBase GetSoftSkillsPlayer ( )
inlineprotected

Definition at line 284 of file softskillsmanager.c.

References m_Player.

◆ GetSoftSkillsState()

bool GetSoftSkillsState ( )
inlineprotected

Definition at line 317 of file softskillsmanager.c.

References m_IsActive.

Referenced by AddSpecialty().

◆ GetSpecialtyLevel()

float GetSpecialtyLevel ( )
inlineprotected

Definition at line 296 of file softskillsmanager.c.

References m_SpecialtyLevel.

Referenced by OnUpdate().

◆ InitSpecialty()

void InitSpecialty ( float specialty_level)
inlineprotected

Definition at line 42 of file softskillsmanager.c.

References SetSpecialtyLevel(), and SynchSpecialtyLevel().

◆ IsCoolDown()

bool IsCoolDown ( )
inlineprotected

Definition at line 363 of file softskillsmanager.c.

References m_IsCoolDown.

Referenced by AddSpecialty().

◆ IsDebug()

bool IsDebug ( )
inlineprotected

Definition at line 409 of file softskillsmanager.c.

References m_IsDebugMode.

Referenced by SetBonusAfter(), and SetBonusBefore().

◆ IsLinear()

bool IsLinear ( )
inlineprotected

Definition at line 329 of file softskillsmanager.c.

References m_IsLinear.

Referenced by AddSpecialty().

◆ ResetDebugWindow()

◆ SetBonusAfter()

void SetBonusAfter ( bool is_cacomponent,
float adjusted_value )
inlineprotected

◆ SetBonusBefore()

void SetBonusBefore ( bool is_cacomponent,
float base_value )
inlineprotected

◆ SetComponentBonusAfter()

void SetComponentBonusAfter ( float component_bonus_after)
inlineprotected

Definition at line 489 of file softskillsmanager.c.

References m_ComponentBonusAfter.

Referenced by ResetDebugWindow(), and SetBonusAfter().

◆ SetComponentBonusBefore()

void SetComponentBonusBefore ( float component_bonus_before)
inlineprotected

Definition at line 477 of file softskillsmanager.c.

References m_ComponentBonusBefore.

Referenced by ResetDebugWindow(), and SetBonusBefore().

◆ SetCoolDown()

void SetCoolDown ( bool cool_down)
inlineprotected

Definition at line 369 of file softskillsmanager.c.

References m_IsCoolDown.

Referenced by StartCoolDownTimer().

◆ SetCoolDownValue()

void SetCoolDownValue ( float cooldown_value)
inlineprotected

Definition at line 415 of file softskillsmanager.c.

References m_CoolDownValue.

Referenced by ResetDebugWindow(), and StartCoolDownTimer().

◆ SetGeneralBonusAfter()

void SetGeneralBonusAfter ( float general_bonus_after)
inlineprotected

Definition at line 513 of file softskillsmanager.c.

References m_GeneralBonusAfter.

Referenced by ResetDebugWindow(), and SetBonusAfter().

◆ SetGeneralBonusBefore()

void SetGeneralBonusBefore ( float general_bonus_before)
inlineprotected

Definition at line 501 of file softskillsmanager.c.

References m_GeneralBonusBefore.

Referenced by ResetDebugWindow(), and SetBonusBefore().

◆ SetIsDebug()

void SetIsDebug ( bool is_debug)
inlineprotected

Definition at line 403 of file softskillsmanager.c.

References m_IsDebugMode.

Referenced by CreateDebugWindow(), StartSynchTimer(), and StopSynchTimer().

◆ SetLastUAValue()

void SetLastUAValue ( float last_ua_value)
inlineprotected

◆ SetLinearState()

void SetLinearState ( bool model)
inlineprotected

Definition at line 323 of file softskillsmanager.c.

References m_IsLinear.

◆ SetSoftSkillsState()

void SetSoftSkillsState ( bool state)
inlineprotected

Definition at line 311 of file softskillsmanager.c.

References m_IsActive.

◆ SetSpecialtyLevel()

void SetSpecialtyLevel ( float specialty_level)
inlineprotected

Definition at line 290 of file softskillsmanager.c.

References m_SpecialtyLevel.

Referenced by AddSpecialty(), InitSpecialty(), and ResetDebugWindow().

◆ StartCoolDownTimer()

void StartCoolDownTimer ( float cooldown_value)
inlineprotected

Definition at line 355 of file softskillsmanager.c.

References m_CoolDownTimer, SetCoolDown(), and SetCoolDownValue().

Referenced by AddSpecialty().

◆ StartSynchTimer()

void StartSynchTimer ( )
inlineprotected

Definition at line 519 of file softskillsmanager.c.

References m_SynchTimer, and SetIsDebug().

◆ StopSynchTimer()

void StopSynchTimer ( )
inlineprotected

Definition at line 527 of file softskillsmanager.c.

References m_SynchTimer, and SetIsDebug().

◆ SubtractSpecialtyBonus()

float SubtractSpecialtyBonus ( float base_value,
float specialty_weight,
bool is_cacomponent = false,
float limit_efficiency = 2 )
inlineprotected

◆ SynchDebugStats()

void SynchDebugStats ( )
inlineprotected

◆ SynchSpecialtyLevel()

void SynchSpecialtyLevel ( )
inlineprotected

Definition at line 302 of file softskillsmanager.c.

References g_Game, m_Player, and m_SpecialtyLevel.

Referenced by AddSpecialty(), InitSpecialty(), and ResetDebugWindow().

Field Documentation

◆ COOLDOWN_TIMER

const float COOLDOWN_TIMER = 5
staticprotected

Definition at line 17 of file softskillsmanager.c.

Referenced by AddSpecialty().

◆ DEFAULT_EFFICIENCY

const int DEFAULT_EFFICIENCY = 0
staticprotected

Definition at line 14 of file softskillsmanager.c.

Referenced by GetPreciseRoughLevels().

◆ m_ComponentBonusAfter

float m_ComponentBonusAfter
protected

Definition at line 25 of file softskillsmanager.c.

Referenced by GetComponentBonusAfter(), and SetComponentBonusAfter().

◆ m_ComponentBonusBefore

float m_ComponentBonusBefore
protected

Definition at line 24 of file softskillsmanager.c.

Referenced by GetComponentBonusBefore(), and SetComponentBonusBefore().

◆ m_CoolDownTimer

ref Timer m_CoolDownTimer = new Timer()
protected

Definition at line 19 of file softskillsmanager.c.

Referenced by ~SoftSkillsManager(), and StartCoolDownTimer().

◆ m_CoolDownValue

float m_CoolDownValue
protected

Definition at line 22 of file softskillsmanager.c.

Referenced by GetCoolDownValue(), SetCoolDownValue(), and SynchDebugStats().

◆ m_DebugWindow

ref SoftSkillManagerDebug m_DebugWindow
protected

Definition at line 29 of file softskillsmanager.c.

Referenced by CreateDebugWindow().

◆ m_GeneralBonusAfter

float m_GeneralBonusAfter
protected

Definition at line 27 of file softskillsmanager.c.

Referenced by GetGeneralBonusAfter(), SetGeneralBonusAfter(), and SynchDebugStats().

◆ m_GeneralBonusBefore

float m_GeneralBonusBefore
protected

◆ m_IsActive

bool m_IsActive
protected

Definition at line 9 of file softskillsmanager.c.

Referenced by SoftSkillsManager(), GetSoftSkillsState(), and SetSoftSkillsState().

◆ m_IsCoolDown

bool m_IsCoolDown
protected

Definition at line 10 of file softskillsmanager.c.

Referenced by SoftSkillsManager(), IsCoolDown(), SetCoolDown(), and SynchDebugStats().

◆ m_IsDebugMode

bool m_IsDebugMode
protected

Definition at line 21 of file softskillsmanager.c.

Referenced by SoftSkillsManager(), IsDebug(), and SetIsDebug().

◆ m_IsLinear

bool m_IsLinear
protected

Definition at line 8 of file softskillsmanager.c.

Referenced by SoftSkillsManager(), IsLinear(), and SetLinearState().

◆ m_LastUAValue

float m_LastUAValue
protected

Definition at line 23 of file softskillsmanager.c.

Referenced by GetLastUAValue(), SetLastUAValue(), and SynchDebugStats().

◆ m_Player

◆ m_PreciseLevel

float m_PreciseLevel
protected

◆ m_RoughLevel

float m_RoughLevel
protected

◆ m_SpecialtyLevel

◆ m_SynchTimer

ref Timer m_SynchTimer
protected

Definition at line 31 of file softskillsmanager.c.

Referenced by StartSynchTimer(), and StopSynchTimer().

◆ m_UserActionsCounter

int m_UserActionsCounter
protected

Definition at line 12 of file softskillsmanager.c.

Referenced by AddExponentialPrecise(), and AddExponentialRough().

◆ PRECISE_WEIGHT_LIMIT

const float PRECISE_WEIGHT_LIMIT = -1
staticprotected

◆ ROUGH_WEIGHT_LIMIT

const float ROUGH_WEIGHT_LIMIT = 1
staticprotected

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