|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| AlphaTraitSet () noexcept | |
| Constructs set containing the empty value. More... | |
| AlphaTraitSet (int32_t nValue) noexcept | |
| AlphaTraitSet (int32_t nFromValue, int32_t nToValue) noexcept | |
| AlphaTraitSet (int32_t nFromValue, int32_t nToValue, int32_t nStep) noexcept | |
| AlphaTraitSet (const std::vector< int32_t > &aValues) noexcept | |
| AlphaTraitSet (const IntSet &oIntSet, bool bWithEmptyValue) noexcept | |
| AlphaTraitSet (IntSet &&oIntSet, bool bWithEmptyValue) noexcept | |
| AlphaTraitSet (const AlphaTraitSet &oSource) noexcept=default | |
| AlphaTraitSet (AlphaTraitSet &&oSource) noexcept=default | |
| AlphaTraitSet & | operator= (const AlphaTraitSet &oSource) noexcept=default |
| AlphaTraitSet & | operator= (AlphaTraitSet &&oSource) noexcept=default |
| 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... | |
| void | dump (int32_t nIndentSpaces, bool bHeader) const noexcept override |
| Dumps the trait set. More... | |
Public Member Functions inherited from stmg::IntTraitSet | |
| bool | hasEmptyValue () const noexcept override |
| Whether the trait set contains the empty value. More... | |
| int32_t | getTotValues () const noexcept override |
| 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 |
Protected Member Functions | |
| std::pair< bool, int32_t > | getTraitValue (const Tile &oTile) const noexcept override |
| Either the value of the tile's trait or empty. More... | |
| void | setTileTraitValue (Tile &oTile, int32_t nValue) const noexcept override |
| Sets the tile's trait value. More... | |
| void | resetTileTraitValue (Tile &oTile) const noexcept override |
| Sets the tile's trait to empty. More... | |
Protected Member Functions inherited from stmg::IntTraitSet | |
| IntTraitSet () noexcept | |
| Constructs empty trait set. More... | |
| IntTraitSet (int32_t nValue) noexcept | |
| Constructs trait set with one value. More... | |
| IntTraitSet (int32_t nFromValue, int32_t nToValue) noexcept | |
| Constructs trait set with ordered value range. More... | |
| IntTraitSet (int32_t nFromValue, int32_t nToValue, int32_t nStep) noexcept | |
| Constructs trait set with ordered stepped value range. More... | |
| IntTraitSet (const std::vector< int32_t > &aValues) noexcept | |
| Constructs trait set with array of values. More... | |
| IntTraitSet (const IntSet &oIntSet) noexcept | |
| Constructs trait set from an integer set. More... | |
| IntTraitSet (IntSet &&oIntSet) noexcept | |
| Constructs trait set from an integer set. More... | |
| IntTraitSet (const IntTraitSet &oSource) noexcept=default | |
| IntTraitSet (IntTraitSet &&oSource) noexcept=default | |
| IntTraitSet & | operator= (const IntTraitSet &oSource) noexcept=default |
| IntTraitSet & | operator= (IntTraitSet &&oSource) noexcept=default |
| bool | hasValue (int32_t nValue) const noexcept |
|
noexcept |
Constructs set containing the empty value.
If you want to construct the empty set use AlphaTraitSet({}) instead.
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
overridevirtualnoexcept |
|
finaloverridevirtualnoexcept |
Get the total number of values in this tile trait indexed set.
The empty value, if present, is also counted.
Implements stmg::TraitSet.
|
overrideprotectedvirtualnoexcept |
Either the value of the tile's trait or empty.
| oTile | The tile |
Implements stmg::IntTraitSet.
|
finaloverridevirtualnoexcept |
Whether the set contains the empty value.
Implements stmg::TraitSet.
|
defaultnoexcept |
|
defaultnoexcept |
|
overrideprotectedvirtualnoexcept |
|
overrideprotectedvirtualnoexcept |
Sets the tile's trait value.
| oTile | The tile to modify. |
| nValue | The new value. |
Implements stmg::IntTraitSet.
1.8.13