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

Private Member Functions

void SpookyEventBase ()
 
protected void Init ()
 
protected vector GetMatchingSurfacePos (TStringArray surfaces, TStringVectorMap gatheredSurfaces)
 
protected void SetCoolDown (float secs)
 
protected bool HasSurfaces ()
 
protected bool CanDo (PlayerBase player, TStringVectorMap surfaceTypes)
 
protected void Do (PlayerBase player)
 
bool CanPerform (PlayerBase player, float currentTime, TStringVectorMap surfaceTypes)
 
void Perform (PlayerBase player, float currentTime, TStringVectorMap gatheredSurfaces)
 
protected vector GetSoundPos (PlayerBase player)
 

Private Attributes

protected float m_PerformedTimestamp
 
protected int m_Cooldown
 
protected string m_SoundSet
 
protected ref TStringArray m_Surfaces
 
protected vector m_MatchingSurfacePos
 

Constructor & Destructor Documentation

◆ SpookyEventBase()

void SpookyEventBase ( )
inlineprivate

References Init().

Member Function Documentation

◆ CanDo()

protected bool CanDo ( PlayerBase  player,
TStringVectorMap  surfaceTypes 
)
inlineprivate

Referenced by CanPerform().

◆ CanPerform()

bool CanPerform ( PlayerBase  player,
float  currentTime,
TStringVectorMap  surfaceTypes 
)
inlineprivate

◆ Do()

protected void Do ( PlayerBase  player)
private

Referenced by Perform().

◆ GetMatchingSurfacePos()

protected vector GetMatchingSurfacePos ( TStringArray  surfaces,
TStringVectorMap  gatheredSurfaces 
)
inlineprivate

References string::Contains(), and vector::Zero.

Referenced by CanPerform().

◆ GetSoundPos()

protected vector GetSoundPos ( PlayerBase  player)
inlineprivate

◆ HasSurfaces()

protected bool HasSurfaces ( )
inlineprivate

References m_Surfaces.

Referenced by CanPerform(), and GetSoundPos().

◆ Init()

protected void Init ( )
private

Referenced by SpookyEventBase().

◆ Perform()

◆ SetCoolDown()

protected void SetCoolDown ( float  secs)
inlineprivate

Field Documentation

◆ m_Cooldown

protected int m_Cooldown
private

Referenced by CanPerform(), and SetCoolDown().

◆ m_MatchingSurfacePos

protected vector m_MatchingSurfacePos
private

Referenced by CanPerform(), and GetSoundPos().

◆ m_PerformedTimestamp

protected float m_PerformedTimestamp
private

Referenced by CanPerform(), and Perform().

◆ m_SoundSet

protected string m_SoundSet
private

◆ m_Surfaces

protected ref TStringArray m_Surfaces
private

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