|
stmm-games-doc
0.32.0
|
Public Member Functions | |
| XmlTraitsParser (XmlConditionalParser &oXmlConditionalParser) | |
| Constructor. More... | |
| XmlConditionalParser & | getXmlConditionalParser () |
| void | parseTile (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, Tile &oTile) |
| Parse all the traits of tile within the same element. More... | |
| void | parseColor (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, TileColor &oTileColor) |
| Parse the tile color. More... | |
| void | parseAlpha (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, TileAlpha &oTileAlpha) |
| Parse the tile alpha. More... | |
| void | parseChar (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, TileChar &oTileChar) |
| Parse the tile char. More... | |
| void | parseFont (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, TileFont &oTileFont) |
| Parse the tile font. More... | |
| void | parseGamma (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, TileGamma &oTileGamma) |
| Parse the tile gamma. More... | |
| void | parseTheta (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, TileTheta &oTileTheta) |
| Parse the tile theta. More... | |
| void | parseChars (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, CharTraitSet &oTraitSet) |
| Parse a char trait set. More... | |
| void | parseColors (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, bool bAllowRgbFromTo, ColorTraitSet &oTraitSet) |
| Parse a color trait set. More... | |
| void | parseFonts (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, FontTraitSet &oTraitSet) |
| Parse a font trait set. More... | |
| void | parseAlphas (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, AlphaTraitSet &oTraitSet) |
| Parse a alpha trait set. More... | |
| void | parseGammas (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, GammaTraitSet &oTraitSet) |
| Parse a gamma trait set. More... | |
| void | parseThetas (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, ThetaTraitSet &oTraitSet) |
| Parse a theta trait set. More... | |
| void | parsePlayers (ConditionalCtx &oCtx, const xmlpp::Element *p0Element, IntSet &oIntSet) |
| Parse a player trait set. More... | |
| std::unique_ptr< TileSelector > | parseTileSelectorOr (ConditionalCtx &oCtx, const xmlpp::Element *p0Element) |
| Parses a tile selector with children elements tied by an "or" condition. More... | |
| std::unique_ptr< TileSelector > | parseTileSelectorAnd (ConditionalCtx &oCtx, const xmlpp::Element *p0Element) |
| Parses a tile selector with children elements tied by an "and" condition. More... | |
| std::unique_ptr< TileSelector > | parseTileSelector (ConditionalCtx &oCtx, const xmlpp::Element *p0Element) |
| Calls parseTileSelectorOr. More... | |
|
inline |
Constructor.
| oXmlConditionalParser | The conditional parser to use. |
|
inline |
| void stmg::XmlTraitsParser::parseAlpha | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| TileAlpha & | oTileAlpha | ||
| ) |
Parse the tile alpha.
If the trait is not defined the input/output value oTileAlpha is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTileAlpha | The possibly modified tile alpha. |
| void stmg::XmlTraitsParser::parseAlphas | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| AlphaTraitSet & | oTraitSet | ||
| ) |
Parse a alpha trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTraitSet | The alpha trait set. |
| void stmg::XmlTraitsParser::parseChar | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| TileChar & | oTileChar | ||
| ) |
Parse the tile char.
If the trait is not defined the input/output value oTileChar is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTileChar | The possibly modified tile char. |
| void stmg::XmlTraitsParser::parseChars | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| CharTraitSet & | oTraitSet | ||
| ) |
Parse a char trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTraitSet | The char trait set. |
| void stmg::XmlTraitsParser::parseColor | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| TileColor & | oTileColor | ||
| ) |
Parse the tile color.
If the trait is not defined the input/output value oTileColor is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTileColor | The possibly modified tile color. |
| void stmg::XmlTraitsParser::parseColors | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| bool | bAllowRgbFromTo, | ||
| ColorTraitSet & | oTraitSet | ||
| ) |
Parse a color trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| bAllowRgbFromTo | Whether from to of rgb values is allowed. |
| oTraitSet | The color trait set. |
| void stmg::XmlTraitsParser::parseFont | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| TileFont & | oTileFont | ||
| ) |
Parse the tile font.
If the trait is not defined the input/output value oTileFont is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTileFont | The possibly modified tile font. |
| void stmg::XmlTraitsParser::parseFonts | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| FontTraitSet & | oTraitSet | ||
| ) |
Parse a font trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTraitSet | The font trait set. |
| void stmg::XmlTraitsParser::parseGamma | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| TileGamma & | oTileGamma | ||
| ) |
Parse the tile gamma.
If the trait is not defined the input/output value oTileGamma is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTileGamma | The possibly modified tile gamma. |
| void stmg::XmlTraitsParser::parseGammas | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| GammaTraitSet & | oTraitSet | ||
| ) |
Parse a gamma trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTraitSet | The gamma trait set. |
| void stmg::XmlTraitsParser::parsePlayers | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| IntSet & | oIntSet | ||
| ) |
Parse a player trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oIntSet | The player trait set. |
| void stmg::XmlTraitsParser::parseTheta | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| TileTheta & | oTileTheta | ||
| ) |
Parse the tile theta.
If the trait is not defined the input/output value oTileTheta is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTileTheta | The possibly modified tile theta. |
| void stmg::XmlTraitsParser::parseThetas | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| ThetaTraitSet & | oTraitSet | ||
| ) |
Parse a theta trait set.
If the trait is defined the trait set is overwritten otherwise it is left unchanged.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTraitSet | The theta trait set. |
| void stmg::XmlTraitsParser::parseTile | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element, | ||
| Tile & | oTile | ||
| ) |
Parse all the traits of tile within the same element.
If a trait is not defined its value in input/output parameter oTile is left unchanged, otherwise it is overwritten.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| oTile | The possibly modified tile. |
|
inline |
Calls parseTileSelectorOr.
| std::unique_ptr<TileSelector> stmg::XmlTraitsParser::parseTileSelectorAnd | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element | ||
| ) |
Parses a tile selector with children elements tied by an "and" condition.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
| std::unique_ptr<TileSelector> stmg::XmlTraitsParser::parseTileSelectorOr | ( | ConditionalCtx & | oCtx, |
| const xmlpp::Element * | p0Element | ||
| ) |
Parses a tile selector with children elements tied by an "or" condition.
| oCtx | The context. |
| p0Element | The element. Cannot be null. |
1.8.13