AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::RandomCheck Class Reference

#include "GridNotifiers.h"

Public Member Functions

 RandomCheck (uint8 chance)
 
bool operator() (WorldObject const *) const
 

Private Attributes

uint8 const _chance
 

Detailed Description

Constructor & Destructor Documentation

◆ RandomCheck()

Acore::RandomCheck::RandomCheck ( uint8  chance)
inlineexplicit
1664: _chance(chance) { }
uint8 const _chance
Definition: GridNotifiers.h:1671

Member Function Documentation

◆ operator()()

bool Acore::RandomCheck::operator() ( WorldObject const *  ) const
inline
1666 {
1667 return roll_chance_i(_chance);
1668 }
bool roll_chance_i(int chance)
Definition: Random.h:59

References _chance, and roll_chance_i().

Member Data Documentation

◆ _chance

uint8 const Acore::RandomCheck::_chance
private

Referenced by operator()().