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

Private Member Functions

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

Private Attributes

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

Constructor & Destructor Documentation

◆ SymptomManager()

Member Function Documentation

◆ AutoactivateSymptoms()

void AutoactivateSymptoms ( )
inlineprivate

References GetGame(), and QueueUpSecondarySymptom().

Referenced by SymptomManager().

◆ CleanUpPrimaryQueue()

void CleanUpPrimaryQueue ( )
inlineprivate

References m_SymptomQueuePrimary.

Referenced by OnRPC().

◆ ComparePriority()

int ComparePriority ( int  prio1,
int  prio2 
)
inlineprivate

Referenced by QueueUpPrimarySymptom().

◆ CreateUniqueID()

int CreateUniqueID ( )
inlineprivate

◆ DecreaseSymptomCount()

void DecreaseSymptomCount ( int  symptom_id)
inlineprivate

References m_ActiveSymptomTypes.

Referenced by OnSymptomExit().

◆ FindFirstAvailableSymptomIndex()

int FindFirstAvailableSymptomIndex ( )
inlineprivate

References m_SymptomQueuePrimary.

Referenced by OnTick().

◆ GetCurrentCommandID()

int GetCurrentCommandID ( )
inlineprivate

References m_CurrentCommandID.

Referenced by VomitSymptom::CanActivate().

◆ GetCurrentPrimaryActiveSymptom()

SymptomBase GetCurrentPrimaryActiveSymptom ( )
inlineprivate

◆ GetPlayer()

PlayerBase GetPlayer ( )
inlineprivate

References m_Player.

◆ GetStorageVersion()

int GetStorageVersion ( )
inlineprivate

References STORAGE_VERSION.

◆ GetSymptomByUID()

SymptomBase GetSymptomByUID ( int  SYMPTOM_uid)
inlineprivate

References m_SymptomsUIDs.

◆ GetSymptomCount()

int GetSymptomCount ( int  symptom_id)
inlineprivate

◆ GetSymptomMaxCount()

int GetSymptomMaxCount ( int  symptom_id)
inlineprivate

◆ GetSymptomName()

string GetSymptomName ( int  symptom_id)
inlineprivate

References m_AvailableSymptoms.

◆ GetSymptomPriority()

int GetSymptomPriority ( int  symptom_id)
inlineprivate

References m_AvailableSymptoms.

Referenced by QueueUpPrimarySymptom().

◆ IncreaseSymptomCount()

void IncreaseSymptomCount ( int  symptom_id)
inlineprivate

References m_ActiveSymptomTypes.

Referenced by SpawnSymptom().

◆ Init()

void Init ( )
inlineprivate

References RegisterSymptom().

Referenced by SymptomManager().

◆ IsSymptomPrimary()

bool IsSymptomPrimary ( int  symptom_id)
inlineprivate

References m_AvailableSymptoms.

Referenced by OnStoreLoad().

◆ IsUIDUsed()

bool IsUIDUsed ( int  uid)
inlineprivate

References m_SymptomsUIDs.

Referenced by CreateUniqueID().

◆ OnAnimationFinished()

void OnAnimationFinished ( eAnimFinishType  type = eAnimFinishType.SUCCESS)
inlineprivate

References m_AnimMeta.

Referenced by OnTick(), PlayRequest(), and Update().

◆ OnAnimationStarted()

void OnAnimationStarted ( )
inlineprivate

◆ OnInputUserDataReceived()

void OnInputUserDataReceived ( ParamsReadContext  ctx)
inlineprivate

◆ OnPlayerKilled()

void OnPlayerKilled ( )
inlineprivate

◆ 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

◆ 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.

References m_SymptomQueueSecondary.

Referenced by OnRPC(), and OnTick().

◆ RequestSymptomExit()

void RequestSymptomExit ( int  SYMPTOM_uid)
inlineprivate

Exits a specific Symptom with a given UID.

References m_SymptomsUIDs.

◆ SetAnimation()

void SetAnimation ( ParamsReadContext  ctx)
inlineprivate

◆ SpawnAnimMetaObject()

SmptAnimMetaBase SpawnAnimMetaObject ( int  symptom_id)
inlineprivate

References m_AvailableSymptoms.

◆ SpawnSymptom()

◆ UpdateActiveSymptoms()

void UpdateActiveSymptoms ( float  deltatime)
inlineprivate

Field Documentation

◆ m_ActiveSymptomIndexPrimary

int m_ActiveSymptomIndexPrimary = -1
private

◆ m_ActiveSymptomTypes

ref map<int, int> m_ActiveSymptomTypes
private

◆ m_AnimMeta

ref SmptAnimMetaBase m_AnimMeta
private

◆ m_AvailableSymptoms

◆ m_CurrentCommandID

int m_CurrentCommandID
private

Referenced by GetCurrentCommandID(), and OnTick().

◆ m_Player

◆ m_ShowDebug

bool m_ShowDebug = false
private

◆ m_ShowDebug2

bool m_ShowDebug2 = false
private

◆ m_SymptomQueuePrimary

◆ m_SymptomQueueSecondary

◆ m_SymptomQueueServerDbg

ref array<ref Param> m_SymptomQueueServerDbg
private

Referenced by SymptomManager().

◆ m_SymptomQueueServerDbgPrimary

ref array<ref Param> m_SymptomQueueServerDbgPrimary
private

Referenced by OnTick(), and SymptomManager().

◆ m_SymptomQueueServerDbgSecondary

ref array<ref Param> m_SymptomQueueServerDbgSecondary
private

Referenced by OnTick(), and SymptomManager().

◆ m_SymptomsUIDs

◆ m_Timer

ref Timer m_Timer
private

◆ STORAGE_VERSION

const int STORAGE_VERSION = 121
private

Referenced by GetStorageVersion().


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