|
stmm-games-doc
0.32.0
|
Classes | |
| struct | Distr |
| struct | DistrFixed |
| struct | DistrRandPosSingle |
| struct | DistrRandPosTiles |
| struct | DistrRandSingle |
| struct | DistrRandTiles |
| struct | Init |
| struct | NewRowGen |
Public Member Functions | |
| NewRows (RandomSource &oRandomSource, Init &&oInit) noexcept | |
| Constructor. More... | |
| NewRows (NewRows &&oSource) noexcept=default | |
| int32_t | getTotNewRowGens () const noexcept |
| The number of new row generators. More... | |
| int32_t | getTotRandomTileGens () const noexcept |
| The number of random tile generators. More... | |
| int32_t | getMinSize () const noexcept |
| The minimum size of the row. More... | |
| void | createNewRow (int32_t nNewRowGenIdx, TileBuffer &oTileBuffer, int32_t nRow) noexcept |
| Create a random row. More... | |
|
noexcept |
Constructor.
| oRandomSource | The random source. Must persist during he active lifetime of this instance. |
| oInit | The initialization data. |
|
defaultnoexcept |
|
noexcept |
Create a random row.
If the tile buffer has non empty tiles when this function is called, they are not overwritten.
| nNewRowGenIdx | The index into Init::m_aNewRowGens. Must be >= 0 and < getTotNewRowGens(). |
| oTileBuffer | The tile buffer to fill. It's width must be >= getMinSize(). |
| nRow | The row to fill in oTileBuffer. Must be >= 0 and < oTileBuffer.getH(). |
|
noexcept |
The minimum size of the row.
This is the maximum of the size of all Distr objects. See createNewRow.
|
noexcept |
The number of new row generators.
|
noexcept |
The number of random tile generators.
1.8.13