TrinityCore
Loading...
Searching...
No Matches
PseudoRandomDistributionState Struct Reference

#include <Random.h>

Public Member Functions

float AccumulateChance (float progress)
 
void Reset ()
 

Private Attributes

float _progress = 0.0f
 

Detailed Description

Definition at line 87 of file Random.h.

Member Function Documentation

◆ AccumulateChance()

float PseudoRandomDistributionState::AccumulateChance ( float  progress)
inline

Definition at line 89 of file Random.h.

References _progress.

Referenced by roll_chance().

◆ Reset()

void PseudoRandomDistributionState::Reset ( )
inline

Definition at line 90 of file Random.h.

References _progress.

Referenced by roll_chance().

Member Data Documentation

◆ _progress

float PseudoRandomDistributionState::_progress = 0.0f
private

Definition at line 93 of file Random.h.

Referenced by AccumulateChance(), and Reset().


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