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

Protected Member Functions

bool CanUpdateSymptom (SymptomBase symptom)

Private Member Functions

void SymptomManager (PlayerBase player)
void AutoactivateSymptoms ()
void CleanUpPrimaryQueue ()
int ComparePriority (int prio1, int prio2)
int CreateUniqueID ()
void DecreaseSymptomCount (int symptom_id)
int FindFirstAvailableSymptomIndex ()
int GetCurrentCommandID ()
SymptomBase GetCurrentPrimaryActiveSymptom ()
PlayerBase GetPlayer ()
int GetStorageVersion ()
SymptomBase GetSymptomByUID (int SYMPTOM_uid)
int GetSymptomCount (int symptom_id)
int GetSymptomMaxCount (int symptom_id)
string GetSymptomName (int symptom_id)
int GetSymptomPriority (int symptom_id)
void IncreaseSymptomCount (int symptom_id)
void Init ()
bool IsSymptomPrimary (int symptom_id)
bool IsUIDUsed (int uid)
void OnAnimationFinished (eAnimFinishType type=eAnimFinishType.SUCCESS)
void OnAnimationStarted ()
void OnInputUserDataReceived (ParamsReadContext ctx)
void OnPlayerKilled ()
void OnRPC (int rpc_type, ParamsReadContext ctx)
bool OnStoreLoad (ParamsReadContext ctx, int version)
void OnStoreSave (ParamsWriteContext ctx)
void OnSymptomExit (SymptomBase Symptom, int uid)
void OnTick (float deltatime, int pCurrentCommandID, HumanMovementState movement_state)
SymptomBase QueueUpPrimarySymptom (int symptom_id, int uid=-1)
void QueueUpSecondarySymptom (int symptom_id, int uid=-1)
SymptomBase QueueUpSecondarySymptomEx (int symptom_id, int uid=-1)
void RegisterSymptom (SymptomBase Symptom)
void RemoveSecondarySymptom (int symptom_id)
 Removes a single Symptom.
void RequestSymptomExit (int SYMPTOM_uid)
 Exits a specific Symptom with a given UID.
void SetAnimation (ParamsReadContext ctx)
SmptAnimMetaBase SpawnAnimMetaObject (int symptom_id)
SymptomBase SpawnSymptom (int symptom_id, int uid=-1)
void UpdateActiveSymptoms (float deltatime)

Private Attributes

int m_ActiveSymptomIndexPrimary = -1
ref map< int, intm_ActiveSymptomTypes
ref SmptAnimMetaBase m_AnimMeta
ref map< int, ref SymptomBasem_AvailableSymptoms
int m_CurrentCommandID
PlayerBase m_Player
bool m_ShowDebug = false
bool m_ShowDebug2 = false
ref array< ref SymptomBasem_SymptomQueuePrimary
ref array< ref SymptomBasem_SymptomQueueSecondary
ref array< ref Paramm_SymptomQueueServerDbg
ref array< ref Paramm_SymptomQueueServerDbgPrimary
ref array< ref Paramm_SymptomQueueServerDbgSecondary
ref map< int, SymptomBasem_SymptomsUIDs
ref Timer m_Timer
const int STORAGE_VERSION = 121

Detailed Description

Definition at line 47 of file statemanager.c.

Constructor & Destructor Documentation

◆ SymptomManager()

Member Function Documentation

◆ AutoactivateSymptoms()

void AutoactivateSymptoms ( )
inlineprivate

Definition at line 101 of file statemanager.c.

References g_Game, and QueueUpSecondarySymptom().

Referenced by SymptomManager().

◆ CanUpdateSymptom()

bool CanUpdateSymptom ( SymptomBase symptom)
inlineprotected

Definition at line 673 of file statemanager.c.

References SymptomBase::AllowInUnconscious(), and m_Player.

Referenced by UpdateActiveSymptoms().

◆ CleanUpPrimaryQueue()

void CleanUpPrimaryQueue ( )
inlineprivate

Definition at line 465 of file statemanager.c.

References m_SymptomQueuePrimary.

Referenced by OnRPC().

◆ ComparePriority()

int ComparePriority ( int prio1,
int prio2 )
inlineprivate

Definition at line 572 of file statemanager.c.

Referenced by QueueUpPrimarySymptom().

◆ CreateUniqueID()

int CreateUniqueID ( )
inlineprivate

Definition at line 176 of file statemanager.c.

References CreateUniqueID(), IsUIDUsed(), and Math::RandomInt().

Referenced by CreateUniqueID(), and SpawnSymptom().

◆ DecreaseSymptomCount()

void DecreaseSymptomCount ( int symptom_id)
inlineprivate

Definition at line 425 of file statemanager.c.

References m_ActiveSymptomTypes.

Referenced by OnSymptomExit().

◆ FindFirstAvailableSymptomIndex()

int FindFirstAvailableSymptomIndex ( )
inlineprivate

Definition at line 560 of file statemanager.c.

References m_SymptomQueuePrimary.

Referenced by OnTick().

◆ GetCurrentCommandID()

int GetCurrentCommandID ( )
inlineprivate

Definition at line 219 of file statemanager.c.

References m_CurrentCommandID.

◆ GetCurrentPrimaryActiveSymptom()

SymptomBase GetCurrentPrimaryActiveSymptom ( )
inlineprivate

◆ GetPlayer()

PlayerBase GetPlayer ( )
inlineprivate

Definition at line 143 of file statemanager.c.

References m_Player.

◆ GetStorageVersion()

int GetStorageVersion ( )
inlineprivate

Definition at line 95 of file statemanager.c.

References STORAGE_VERSION.

◆ GetSymptomByUID()

SymptomBase GetSymptomByUID ( int SYMPTOM_uid)
inlineprivate

Definition at line 138 of file statemanager.c.

References m_SymptomsUIDs.

◆ GetSymptomCount()

int GetSymptomCount ( int symptom_id)
inlineprivate

Definition at line 405 of file statemanager.c.

References m_ActiveSymptomTypes.

Referenced by QueueUpPrimarySymptom(), and QueueUpSecondarySymptomEx().

◆ GetSymptomMaxCount()

int GetSymptomMaxCount ( int symptom_id)
inlineprivate

Definition at line 399 of file statemanager.c.

References m_AvailableSymptoms.

Referenced by QueueUpPrimarySymptom(), and QueueUpSecondarySymptomEx().

◆ GetSymptomName()

string GetSymptomName ( int symptom_id)
inlineprivate

Definition at line 190 of file statemanager.c.

References m_AvailableSymptoms.

◆ GetSymptomPriority()

int GetSymptomPriority ( int symptom_id)
inlineprivate

Definition at line 585 of file statemanager.c.

References m_AvailableSymptoms.

Referenced by QueueUpPrimarySymptom().

◆ IncreaseSymptomCount()

void IncreaseSymptomCount ( int symptom_id)
inlineprivate

Definition at line 413 of file statemanager.c.

References m_ActiveSymptomTypes.

Referenced by SpawnSymptom().

◆ Init()

void Init ( )
inlineprivate

Definition at line 75 of file statemanager.c.

References RegisterSymptom().

Referenced by SymptomManager().

◆ IsSymptomPrimary()

bool IsSymptomPrimary ( int symptom_id)
inlineprivate

Definition at line 210 of file statemanager.c.

References m_AvailableSymptoms.

Referenced by OnStoreLoad().

◆ IsUIDUsed()

bool IsUIDUsed ( int uid)
inlineprivate

Definition at line 185 of file statemanager.c.

References m_SymptomsUIDs.

Referenced by CreateUniqueID().

◆ OnAnimationFinished()

void OnAnimationFinished ( eAnimFinishType type = eAnimFinishType.SUCCESS)
inlineprivate

Definition at line 162 of file statemanager.c.

References m_AnimMeta.

Referenced by OnTick().

◆ OnAnimationStarted()

void OnAnimationStarted ( )
inlineprivate

◆ OnInputUserDataReceived()

void OnInputUserDataReceived ( ParamsReadContext ctx)
inlineprivate

Definition at line 215 of file statemanager.c.

◆ OnPlayerKilled()

void OnPlayerKilled ( )
inlineprivate

Definition at line 129 of file statemanager.c.

References m_SymptomQueuePrimary, and m_SymptomQueueSecondary.

◆ OnRPC()

◆ OnStoreLoad()

bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
inlineprivate

◆ OnSymptomExit()

◆ OnTick()

◆ QueueUpPrimarySymptom()

◆ QueueUpSecondarySymptom()

void QueueUpSecondarySymptom ( int symptom_id,
int uid = -1 )
inlineprivate

Definition at line 508 of file statemanager.c.

References QueueUpSecondarySymptomEx().

Referenced by AutoactivateSymptoms(), OnRPC(), and OnStoreLoad().

◆ QueueUpSecondarySymptomEx()

SymptomBase QueueUpSecondarySymptomEx ( int symptom_id,
int uid = -1 )
inlineprivate

◆ RegisterSymptom()

void RegisterSymptom ( SymptomBase Symptom)
inlineprivate

◆ RemoveSecondarySymptom()

void RemoveSecondarySymptom ( int symptom_id)
inlineprivate

Removes a single Symptom.

Definition at line 531 of file statemanager.c.

References m_SymptomQueueSecondary.

Referenced by OnRPC(), and OnTick().

◆ RequestSymptomExit()

void RequestSymptomExit ( int SYMPTOM_uid)
inlineprivate

Exits a specific Symptom with a given UID.

Definition at line 204 of file statemanager.c.

References m_SymptomsUIDs.

◆ SetAnimation()

void SetAnimation ( ParamsReadContext ctx)
inlineprivate

Definition at line 302 of file statemanager.c.

References m_AnimMeta, m_Player, Serializer::Read(), and SpawnAnimMetaObject().

◆ SpawnAnimMetaObject()

SmptAnimMetaBase SpawnAnimMetaObject ( int symptom_id)
inlineprivate

Definition at line 195 of file statemanager.c.

References m_AvailableSymptoms.

◆ SpawnSymptom()

SymptomBase SpawnSymptom ( int symptom_id,
int uid = -1 )
inlineprivate

◆ UpdateActiveSymptoms()

Field Documentation

◆ m_ActiveSymptomIndexPrimary

int m_ActiveSymptomIndexPrimary = -1
private

Definition at line 65 of file statemanager.c.

Referenced by GetCurrentPrimaryActiveSymptom(), OnSymptomExit(), and OnTick().

◆ m_ActiveSymptomTypes

ref map<int, int> m_ActiveSymptomTypes
private

◆ m_AnimMeta

ref SmptAnimMetaBase m_AnimMeta
private

Definition at line 73 of file statemanager.c.

Referenced by OnAnimationFinished(), OnTick(), and SetAnimation().

◆ m_AvailableSymptoms

◆ m_CurrentCommandID

int m_CurrentCommandID
private

Definition at line 66 of file statemanager.c.

Referenced by GetCurrentCommandID(), and OnTick().

◆ m_Player

◆ m_ShowDebug

bool m_ShowDebug = false
private

Definition at line 70 of file statemanager.c.

◆ m_ShowDebug2

bool m_ShowDebug2 = false
private

Definition at line 71 of file statemanager.c.

◆ m_SymptomQueuePrimary

◆ m_SymptomQueueSecondary

◆ m_SymptomQueueServerDbg

ref array<ref Param> m_SymptomQueueServerDbg
private

Definition at line 59 of file statemanager.c.

Referenced by SymptomManager().

◆ m_SymptomQueueServerDbgPrimary

ref array<ref Param> m_SymptomQueueServerDbgPrimary
private

Definition at line 60 of file statemanager.c.

Referenced by SymptomManager(), and OnTick().

◆ m_SymptomQueueServerDbgSecondary

ref array<ref Param> m_SymptomQueueServerDbgSecondary
private

Definition at line 61 of file statemanager.c.

Referenced by SymptomManager(), and OnTick().

◆ m_SymptomsUIDs

ref map<int , SymptomBase > m_SymptomsUIDs
private

◆ m_Timer

ref Timer m_Timer
private

Definition at line 63 of file statemanager.c.

◆ STORAGE_VERSION

const int STORAGE_VERSION = 121
private

Definition at line 68 of file statemanager.c.

Referenced by GetStorageVersion().


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