stmm-games-doc  0.32.0
Public Member Functions | Public Attributes | List of all members
stmg::NewRows::DistrRandPosSingle Struct Reference
Inheritance diagram for stmg::NewRows::DistrRandPosSingle:
Inheritance graph
[legend]

Public Member Functions

 DistrRandPosSingle () noexcept
 
- Public Member Functions inherited from stmg::NewRows::Distr
DISTR_TYPE getType () const noexcept
 

Public Attributes

IntSet m_oPositions
 The positions this tile distr should try to fill (if they're not already). More...
 
int32_t m_nLeaveEmpty = 0
 The number of positions that should be left empty. More...
 
int32_t m_nFill = -1
 The number of positions to be filled (m_nLeaveEmpty permitting). More...
 
Tile m_oTile
 If non empty the tile that should be set at the positions. More...
 

Additional Inherited Members

- Protected Member Functions inherited from stmg::NewRows::Distr
 Distr (DISTR_TYPE eDistrType) noexcept
 

Constructor & Destructor Documentation

◆ DistrRandPosSingle()

stmg::NewRows::DistrRandPosSingle::DistrRandPosSingle ( )
inlinenoexcept

Member Data Documentation

◆ m_nFill

int32_t stmg::NewRows::DistrRandPosSingle::m_nFill = -1

The number of positions to be filled (m_nLeaveEmpty permitting).

If -1 all possible positions. Default is -1.

◆ m_nLeaveEmpty

int32_t stmg::NewRows::DistrRandPosSingle::m_nLeaveEmpty = 0

The number of positions that should be left empty.

Must be < m_oPositions.size(). Default is 0.

◆ m_oPositions

IntSet stmg::NewRows::DistrRandPosSingle::m_oPositions

The positions this tile distr should try to fill (if they're not already).

◆ m_oTile

Tile stmg::NewRows::DistrRandPosSingle::m_oTile

If non empty the tile that should be set at the positions.

If empty m_nRandomTilesIdx is used.