24 s << c.
r <<
"," << c.
g <<
"," << c.
b;
30 lawful_bonus(cfg[
"lawful_bonus"]),
32 image(cfg[
"image"]),
name(cfg[
"name"].t_str()),
33 description(cfg[
"description"].t_str()),
35 image_mask(cfg[
"mask"]),
36 color(cfg[
"red"], cfg[
"green"], cfg[
"blue"]),
45 ,
name(
N_(
"Stub Time of Day"))
46 , description(
N_(
"This Time of Day is only a Stub!"))
58 cfg[
"green"] =
color.g;
59 cfg[
"blue"] =
color.b;
child_itors child_range(const std::string &key)
Small struct to store and manipulate ToD colors.
std::string image_mask
The image that is to be laid over all images while this time of day lasts.
std::string sounds
List of "ambient" sounds associated with this time_of_day, Played at the beginning of turn...
int lawful_bonus
The % bonus lawful units receive.
std::string image
The image to be displayed in the game status.
Definitions for the interface to Wesnoth Markup Language (WML).
time_of_day()
A default-constructed time of day object shouldn't really be used so this only loads some null values...
static void parse_times(const config &cfg, std::vector< time_of_day > &normal_times)
Parse config and add time of day entries into passed vector.
GLuint const GLchar * name
this module manages the cache of images.
void write(config &cfg) const
A config object defines a single node in a WML file, with access to child nodes.
std::ostream & operator<<(std::ostream &s, const tod_color &c)