stmm-games-doc  0.32.0
Public Attributes | List of all members
stmg::RandomEvent::LocalInit Struct Reference
Inheritance diagram for stmg::RandomEvent::LocalInit:
Inheritance graph
[legend]

Public Attributes

int32_t m_nFrom = std::numeric_limits<int32_t>::lowest()
 The random number lowest value. More...
 
int32_t m_nTo = std::numeric_limits<int32_t>::max()
 The random number highest value. More...
 
std::string m_sSharedName
 The shared name. More...
 
int32_t m_nBufferSize = s_nDefaultSharedBufferSize
 The maximal shared buffer size. More...
 
bool m_bPermutations = false
 Whether output sequence is permutations of the range [m_nFrom, m_nTo]. More...
 

Member Data Documentation

◆ m_bPermutations

bool stmg::RandomEvent::LocalInit::m_bPermutations = false

Whether output sequence is permutations of the range [m_nFrom, m_nTo].

If the range is bigger than s_nMaxPermutationSize then subsets of the range are permutated in a cyclic way.

◆ m_nBufferSize

int32_t stmg::RandomEvent::LocalInit::m_nBufferSize = s_nDefaultSharedBufferSize

The maximal shared buffer size.

Ignored if sSharedName is empty. If <= 0 s_nDefaultSharedBufferSize is used. Default is s_nDefaultSharedBufferSize.

◆ m_nFrom

int32_t stmg::RandomEvent::LocalInit::m_nFrom = std::numeric_limits<int32_t>::lowest()

The random number lowest value.

Default is std::numeric_limits<int32_t>::lowest().

◆ m_nTo

int32_t stmg::RandomEvent::LocalInit::m_nTo = std::numeric_limits<int32_t>::max()

The random number highest value.

Default is std::numeric_limits<int32_t>::max().

◆ m_sSharedName

std::string stmg::RandomEvent::LocalInit::m_sSharedName

The shared name.

For two RandomEvent instances to share the same sequence they also must have same (m_nFrom, m_nTo) range. If empty random sequence not shared.