time_of_day Struct Reference

Object which defines the current time of day. More...

#include <gamestatus.hpp>

Collaboration diagram for time_of_day:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 time_of_day (const config &cfg)
void write (config &cfg) const

Public Attributes

int lawful_bonus
int bonus_modified
std::string image
t_string name
std::string id
std::string image_mask
int red
int green
int blue
std::string sounds
 List of "ambient" sounds associated with this time_of_day, Played at the beginning of turn.


Detailed Description

Object which defines the current time of day.

Definition at line 35 of file gamestatus.hpp.


Constructor & Destructor Documentation

time_of_day::time_of_day ( const config cfg  )  [explicit]

Definition at line 132 of file gamestatus.cpp.

Referenced by parse_times().


Member Function Documentation

void time_of_day::write ( config cfg  )  const

Definition at line 144 of file gamestatus.cpp.

References blue, buf, green, id, image, image_mask, lawful_bonus, and red.


Member Data Documentation

Definition at line 43 of file gamestatus.hpp.

Referenced by game_display::draw_report(), and gamestatus::get_time_of_day().

std::string time_of_day::image

Definition at line 46 of file gamestatus.hpp.

Referenced by reports::generate_report(), and write().

Definition at line 47 of file gamestatus.hpp.

Referenced by reports::generate_report().

std::string time_of_day::id

Definition at line 48 of file gamestatus.hpp.

Referenced by game_display::draw(), terrain_filter::match_internal(), and write().

Definition at line 52 of file gamestatus.hpp.

Referenced by game_display::draw(), game_display::new_turn(), and write().

Definition at line 56 of file gamestatus.hpp.

Referenced by game_display::adjust_colours(), game_display::new_turn(), and write().

Definition at line 56 of file gamestatus.hpp.

Referenced by game_display::adjust_colours(), game_display::new_turn(), and write().

Definition at line 56 of file gamestatus.hpp.

Referenced by game_display::adjust_colours(), game_display::new_turn(), and write().

std::string time_of_day::sounds

List of "ambient" sounds associated with this time_of_day, Played at the beginning of turn.

Definition at line 60 of file gamestatus.hpp.

Referenced by play_controller::init_side().


The documentation for this struct was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs