soundsource::positional_source Class Reference

#include <soundsource.hpp>

Collaboration diagram for soundsource::positional_source:

Collaboration graph
[legend]

List of all members.

Private Member Functions

 positional_source (const sourcespec &spec)
 ~positional_source ()
void update (unsigned int time, const display &disp)
void update_positions (unsigned int time, const display &disp)
void add_location (const gamemap::location &loc)
void remove_location (const gamemap::location &loc)
void replace_location (const gamemap::location &oldloc, const gamemap::location &newloc)
int calculate_volume (const gamemap::location &loc, const display &disp)

Private Attributes

unsigned int _last_played
unsigned int _min_delay
unsigned int _chance
unsigned int _loops
const unsigned int _id
unsigned int _range
unsigned int _faderange
bool _check_fogged
std::string _files
std::vector< gamemap::location_locations

Static Private Attributes

static unsigned int last_id = 0

Friends

class manager


Detailed Description

Definition at line 36 of file soundsource.hpp.


Constructor & Destructor Documentation

soundsource::positional_source::positional_source ( const sourcespec spec  )  [private]

Definition at line 104 of file soundsource.cpp.

References _faderange, and _range.

soundsource::positional_source::~positional_source (  )  [private]

Definition at line 113 of file soundsource.cpp.

References _id, DISTANCE_SILENT, and sound::reposition_sound().


Member Function Documentation

void soundsource::positional_source::update ( unsigned int  time,
const display disp 
) [private]

void soundsource::positional_source::update_positions ( unsigned int  time,
const display disp 
) [private]

void soundsource::positional_source::add_location ( const gamemap::location loc  )  [private]

Definition at line 186 of file soundsource.cpp.

References _locations.

void soundsource::positional_source::remove_location ( const gamemap::location loc  )  [private]

void soundsource::positional_source::replace_location ( const gamemap::location oldloc,
const gamemap::location newloc 
) [private]

int soundsource::positional_source::calculate_volume ( const gamemap::location loc,
const display disp 
) [private]


Friends And Related Function Documentation

friend class manager [friend]

Definition at line 37 of file soundsource.hpp.


Member Data Documentation

Definition at line 39 of file soundsource.hpp.

Referenced by update().

Definition at line 40 of file soundsource.hpp.

Referenced by update().

Definition at line 41 of file soundsource.hpp.

Referenced by update().

Definition at line 42 of file soundsource.hpp.

Referenced by update().

const unsigned int soundsource::positional_source::_id [private]

Definition at line 43 of file soundsource.hpp.

Referenced by update(), update_positions(), and ~positional_source().

Definition at line 44 of file soundsource.hpp.

Referenced by calculate_volume(), and positional_source().

Definition at line 45 of file soundsource.hpp.

Referenced by calculate_volume(), and positional_source().

Definition at line 46 of file soundsource.hpp.

Referenced by update_positions().

Definition at line 47 of file soundsource.hpp.

Referenced by update().

Definition at line 48 of file soundsource.hpp.

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

unsigned int soundsource::positional_source::last_id = 0 [static, private]

Definition at line 52 of file soundsource.hpp.


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