#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 | update_positions () |
| void | write_sourcespecs (config &cfg) const |
| Serializes information into cfg as new children of key "sound_source", appendend to existing content. | |
| config | to_config () const |
Private Types | |
| typedef std::map< std::string, positional_source * > | positional_source_map |
| typedef positional_source_map::iterator | positional_source_iterator |
| typedef positional_source_map::const_iterator | positional_source_const_iterator |
Private Attributes | |
| positional_source_map | sources_ |
| const display & | disp_ |
Definition at line 78 of file soundsource.hpp.
typedef positional_source_map::const_iterator soundsource::manager::positional_source_const_iterator [private] |
Definition at line 82 of file soundsource.hpp.
typedef positional_source_map::iterator soundsource::manager::positional_source_iterator [private] |
Definition at line 81 of file soundsource.hpp.
typedef std::map<std::string, positional_source *> soundsource::manager::positional_source_map [private] |
Definition at line 80 of file soundsource.hpp.
| soundsource::manager::manager | ( | const display & | disp | ) |
Definition at line 35 of file soundsource.cpp.
References events::generic_event::attach_handler(), disp_, display::scroll_event(), and update_positions().

| soundsource::manager::~manager | ( | ) |
Definition at line 45 of file soundsource.cpp.
References sources_.
| void soundsource::manager::add | ( | const sourcespec & | source | ) |
Definition at line 60 of file soundsource.cpp.
References soundsource::sourcespec::id(), and sources_.
Referenced by WML_HANDLER_FUNCTION().


| void soundsource::manager::handle_generic_event | ( | const std::string & | event_name | ) |
Definition at line 54 of file soundsource.cpp.
References update_positions().

| void soundsource::manager::remove | ( | const std::string & | id | ) |
Definition at line 72 of file soundsource.cpp.
References sources_.
Referenced by WML_HANDLER_FUNCTION().

| config soundsource::manager::to_config | ( | ) | const [virtual] |
Implements savegame::savegame_config.
Definition at line 113 of file soundsource.cpp.
References config::child(), and write_sourcespecs().

| void soundsource::manager::update | ( | ) |
Definition at line 84 of file soundsource.cpp.
| void soundsource::manager::update_positions | ( | ) |
Definition at line 93 of file soundsource.cpp.
References disp_, and sources_.
Referenced by handle_generic_event(), and manager().

| void soundsource::manager::write_sourcespecs | ( | config & | cfg | ) | const |
Serializes information into cfg as new children of key "sound_source", appendend to existing content.
Definition at line 102 of file soundsource.cpp.
References config::add_child(), and sources_.
Referenced by to_config().


const display& soundsource::manager::disp_ [private] |
Definition at line 85 of file soundsource.hpp.
Referenced by manager(), update(), and update_positions().
Definition at line 84 of file soundsource.hpp.
Referenced by add(), remove(), update(), update_positions(), write_sourcespecs(), and ~manager().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:01 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |