17 #ifndef TIME_OF_DAY_HPP_INCLUDED
18 #define TIME_OF_DAY_HPP_INCLUDED
33 bool is_zero()
const {
return r == 0 &&
g == 0 &&
b == 0; }
100 static void parse_times(
const config& cfg, std::vector<time_of_day>& normal_times);
tod_color(int red=0, int green=0, int blue=0)
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.
tod_color color
The color modifications that should be made to the game board to reflect the time of day...
std::string sounds
List of "ambient" sounds associated with this time_of_day, Played at the beginning of turn...
tod_color operator+(const tod_color &o) const
int lawful_bonus
The % bonus lawful units receive.
std::string image
The image to be displayed in the game status.
std::ostream & operator<<(std::ostream &s, const tod_color &tod)
bool operator!=(const tod_color &o) const
bool operator==(const time_of_day &o) const
GLdouble GLdouble GLdouble b
Object which defines a time of day with associated bonuses, image, sounds etc.
time_of_day()
A default-constructed time of day object shouldn't really be used so this only loads some null values...
GLint GLint GLint GLint GLint x
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.
bool operator==(const tod_color &o) const
GLdouble GLdouble GLdouble r
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.
GLsizei const GLcharARB ** string