14 #ifndef SOUNDSOURCE_HPP_INCLUDED
15 #define SOUNDSOURCE_HPP_INCLUDED
40 const unsigned int id_;
135 min_delay_(min_delay),
140 check_fogged_(false),
141 check_shrouded_(false),
164 check_fogged_ =
value;
168 check_shrouded_ =
value;
int calculate_volume(const map_location &loc, const display &disp)
int minimum_delay() const
const std::string & files() const
const std::vector< map_location > & get_locations() const
void set_fade_range(int value)
void set_minimum_delay(int value)
std::map< std::string, positional_source * > positional_source_map
const std::string & id() const
unsigned int last_played_
positional_source_map::iterator positional_source_iterator
void update(unsigned int time, const display &disp)
void handle_generic_event(const std::string &event_name)
std::vector< map_location > locations_
void write(config &cfg) const
Serializes information into cfg as a new (appended) child of key "sound_source".
positional_source_map sources_
void set_full_range(int value)
GLsizei const GLfloat * value
bool check_fogged() const
void write_config(config &cfg) const
Serializes attributes as WML config.
void set_loops(int value)
void update_positions(unsigned int time, const display &disp)
Encapsulates the map of the game.
void set_check_shrouded(bool value)
std::vector< map_location > locations_
void add(const sourcespec &source)
positional_source(const sourcespec &spec)
sourcespec(const std::string &id, const std::string &files, int min_delay, int chance)
Parameter-list constructor.
manager(const display &disp)
void set_chance(int value)
bool check_shrouded() const
A config object defines a single node in a WML file, with access to child nodes.
void set_check_fogged(bool value)
GLsizei const GLcharARB ** string
GLsizei GLsizei GLchar * source
positional_source_map::const_iterator positional_source_const_iterator
static unsigned int last_id
void write_sourcespecs(config &cfg) const
Serializes information into cfg as new children of key "sound_source", appended to existing content...