|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| CharTraitSet () noexcept | |
| Constructs the char trait set containing exactly the empty value. More... | |
| CharTraitSet (std::unique_ptr< CharIndexTraitSet > &refITS) noexcept | |
| CharTraitSet (std::unique_ptr< CharUcs4TraitSet > &refUTS) noexcept | |
| CharTraitSet (std::unique_ptr< CharIndexTraitSet > &&refITS) noexcept | |
| CharTraitSet (std::unique_ptr< CharUcs4TraitSet > &&refUTS) noexcept | |
| CharTraitSet (const std::vector< TileChar > &aTileChars) noexcept | |
| CharTraitSet (std::vector< TileChar > &&aTileChars) noexcept | |
| CharTraitSet & | operator= (CharTraitSet &&oSource) noexcept |
| bool | hasEmptyValue () const noexcept override final |
| Whether the set contains the empty value. More... | |
| int32_t | getTotValues () const noexcept override final |
| Get the total number of values in this tile trait indexed set. More... | |
| bool | setTileTraitValueByIndex (Tile &oTile, int32_t nIdx) const noexcept override final |
| Sets the trait of a tile to the value identified by an index. More... | |
| int32_t | getIndexOfTileTraitValue (const Tile &oTile) const noexcept override final |
| Gets the index of the value of the tile's trait in the set. More... | |
| void | dump (int32_t nIndentSpaces, bool bHeader) const noexcept override |
| Dumps the trait set. More... | |
Public Member Functions inherited from stmg::TraitSet | |
| virtual | ~TraitSet () noexcept=default |
|
noexcept |
Constructs the char trait set containing exactly the empty value.
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
overridevirtualnoexcept |
|
finaloverridevirtualnoexcept |
Gets the index of the value of the tile's trait in the set.
If the tile's trait is empty and the set contains the empty value index -1 is returned.
| oTile | The tile the trait's value of which the index of is needed. |
Implements stmg::TraitSet.
|
finaloverridevirtualnoexcept |
Get the total number of values in this tile trait indexed set.
The empty value, if present, is also counted.
Implements stmg::TraitSet.
|
finaloverridevirtualnoexcept |
Whether the set contains the empty value.
Implements stmg::TraitSet.
|
noexcept |
|
finaloverridevirtualnoexcept |
Sets the trait of a tile to the value identified by an index.
If the set contains the empty value the valid indexes are >=-1 and < (getTotValues()-1).
If the set doesn't contain the empty value the valid indexes are >=0 and < getTotValues().
If the -1 index is passed for a set without empty value, the tile is left untouched and false is returned, otherwise true is returned.
| oTile | The tile to modify. |
| nIdx | The index of the value in the set. |
Implements stmg::TraitSet.
1.8.13