soundsource::manager Class Reference

#include <soundsource.hpp>

Inheritance diagram for soundsource::manager:

Inheritance graph
[legend]
Collaboration diagram for soundsource::manager:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 73 of file soundsource.hpp.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

soundsource::manager::manager ( const display disp  ) 

soundsource::manager::~manager (  ) 

Definition at line 36 of file soundsource.cpp.

References _sources.


Member Function Documentation

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  ) 

Definition at line 63 of file soundsource.cpp.

References _sources.

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 93 of file soundsource.cpp.

References _sources.


Member Data Documentation

Definition at line 78 of file soundsource.hpp.

Referenced by add(), add_location(), remove(), update(), update_positions(), and ~manager().

Definition at line 79 of file soundsource.hpp.

Referenced by manager(), update(), and update_positions().


The documentation for this class 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