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

Private Member Functions

void CatchingResultBasic (EntityAI owner)
 
void SetYieldItem (YieldItemBase yItem)
 
int GetYieldItemParticleId ()
 
protected void SetCatchChance (float val)
 
protected void SetQuality (float val)
 
void SetCatchChanceOverride (bool ovrd, float val=0.0)
 
void SetQualityOverride (bool ovrd, float val=0.0)
 
void UpdateCatchQuality (CatchingContextBase ctx)
 
void UpdateCatchChance (CatchingContextBase ctx)
 
bool RollChance ()
 
protected float RollChanceSeeded ()
 
EntityAI SpawnAndSetup (out int yItemIdx, vector v=vector.Zero)
 

Private Attributes

protected EntityAI m_Owner
 
protected bool m_OverrideChanceActive = false
 
protected bool m_OverrideQualityActive = false
 
protected float m_CatchChance = 1.0
 
protected float m_Quality = 1.0
 
protected YieldItemBase m_YItem
 

Constructor & Destructor Documentation

◆ CatchingResultBasic()

void CatchingResultBasic ( EntityAI  owner)
inlineprivate

References m_Owner.

Member Function Documentation

◆ GetYieldItemParticleId()

int GetYieldItemParticleId ( )
inlineprivate

◆ RollChance()

bool RollChance ( )
inlineprivate

◆ RollChanceSeeded()

protected float RollChanceSeeded ( )
inlineprivate

Referenced by RollChance().

◆ SetCatchChance()

protected void SetCatchChance ( float  val)
inlineprivate

References Math::Clamp(), and m_CatchChance.

Referenced by UpdateCatchChance().

◆ SetCatchChanceOverride()

void SetCatchChanceOverride ( bool  ovrd,
float  val = 0.0 
)
inlineprivate

◆ SetQuality()

protected void SetQuality ( float  val)
inlineprivate

References Math::Clamp(), and m_Quality.

Referenced by UpdateCatchQuality().

◆ SetQualityOverride()

void SetQualityOverride ( bool  ovrd,
float  val = 0.0 
)
inlineprivate

◆ SetYieldItem()

void SetYieldItem ( YieldItemBase  yItem)
inlineprivate

◆ SpawnAndSetup()

◆ UpdateCatchChance()

◆ UpdateCatchQuality()

void UpdateCatchQuality ( CatchingContextBase  ctx)
inlineprivate

Field Documentation

◆ m_CatchChance

protected float m_CatchChance = 1.0
private

◆ m_OverrideChanceActive

protected bool m_OverrideChanceActive = false
private

◆ m_OverrideQualityActive

protected bool m_OverrideQualityActive = false
private

◆ m_Owner

◆ m_Quality

◆ m_YItem


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