#include <soundsource.hpp>
Public Member Functions | |
manager (const display &disp) | |
~manager () | |
void | handle_generic_event (const std::string &event_name) |
void | add (const sourcespec &source) |
void | remove (const std::string &id) |
void | update () |
void | add_location (const std::string &id, const gamemap::location &loc) |
Private Types | |
typedef std::map< std::string, positional_source * > | positional_source_map |
typedef positional_source_map::iterator | positional_source_iterator |
Private Member Functions | |
void | update_positions () |
Private Attributes | |
positional_source_map | _sources |
const display & | _disp |
Definition at line 73 of file soundsource.hpp.
typedef std::map<std::string, positional_source *> soundsource::manager::positional_source_map [private] |
Definition at line 75 of file soundsource.hpp.
typedef positional_source_map::iterator soundsource::manager::positional_source_iterator [private] |
Definition at line 76 of file soundsource.hpp.
soundsource::manager::manager | ( | const display & | disp | ) |
Definition at line 30 of file soundsource.cpp.
References _disp, events::generic_event::attach_handler(), display::scroll_event(), and update_positions().
soundsource::manager::~manager | ( | ) |
void soundsource::manager::update_positions | ( | ) | [private] |
Definition at line 84 of file soundsource.cpp.
References _disp, and _sources.
Referenced by handle_generic_event(), and manager().
void soundsource::manager::handle_generic_event | ( | const std::string & | event_name | ) | [virtual] |
Implements events::observer.
Definition at line 45 of file soundsource.cpp.
References update_positions().
void soundsource::manager::add | ( | const sourcespec & | source | ) |
Definition at line 51 of file soundsource.cpp.
References _sources, and soundsource::sourcespec::id.
void soundsource::manager::remove | ( | const std::string & | id | ) |
void soundsource::manager::update | ( | ) |
Definition at line 75 of file soundsource.cpp.
References _disp, and _sources.
Referenced by play_controller::play_slice().
void soundsource::manager::add_location | ( | const std::string & | id, | |
const gamemap::location & | loc | |||
) |
Definition at line 78 of file soundsource.hpp.
Referenced by add(), add_location(), remove(), update(), update_positions(), and ~manager().
const display& soundsource::manager::_disp [private] |
Definition at line 79 of file soundsource.hpp.
Referenced by manager(), update(), and update_positions().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |