#include <builder.hpp>
Public Member Functions | |
rule_image_variant (const std::string &image_string, const std::string &tod) | |
Shorthand constructor for this structure. | |
Public Attributes | |
std::string | image_string |
A string representing either the filename for an image, or a list of images, with an optional timing for each image. | |
animated< image::locator > | image |
An animated image locator built according to the image string. | |
std::string | tod |
The time-of-day to which this variant applies. |
The in-memory representation of the [variant] WML tag of the [image] WML tag. When an image only has one variant, the [variant] tag may be omitted.
Definition at line 119 of file builder.hpp.
terrain_builder::rule_image_variant::rule_image_variant | ( | const std::string & | image_string, | |
const std::string & | tod | |||
) | [inline] |
A string representing either the filename for an image, or a list of images, with an optional timing for each image.
Corresponds to the "name" parameter of the [variant] (or of the [image]) WML tag.
The timing string is in the following format (expressed in EBNF)
* <timing_string> ::= <timed_image> ( "," <timed_image> ) + * * <timed_image> ::= <image_name> [ ":" <timing> ] * * Where <image_name> represents the actual filename of an image, * and <timing> the number of milliseconds this image will last * in the animation. *
Definition at line 125 of file builder.hpp.
Referenced by terrain_builder::replace_token().
std::string terrain_builder::rule_image_variant::tod |
The time-of-day to which this variant applies.
Set to the empty string, this variant applies to all TODs.
Definition at line 155 of file builder.hpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |