soundsource::sourcespec Class Reference

#include <soundsource.hpp>

Collaboration diagram for soundsource::sourcespec:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 sourcespec (const std::string &id_, const std::string &files_, int min_delay_, int chance_)
sourcespecloop (int loops_)
sourcespeccheck_fog (bool fogged)
sourcespeclocation (const gamemap::location &loc)
sourcespecfull_range (int range_)
sourcespecfade_range (int range_)

Private Attributes

const std::string & id
const std::string & files
int min_delay
int chance
int loops
int range
int faderange
bool check_fogged
std::vector< gamemap::locationlocations

Friends

class manager
class positional_source


Detailed Description

Definition at line 102 of file soundsource.hpp.


Constructor & Destructor Documentation

soundsource::sourcespec::sourcespec ( const std::string &  id_,
const std::string &  files_,
int  min_delay_,
int  chance_ 
) [inline]

Definition at line 117 of file soundsource.hpp.


Member Function Documentation

sourcespec& soundsource::sourcespec::loop ( int  loops_  )  [inline]

Definition at line 123 of file soundsource.hpp.

References loops.

sourcespec& soundsource::sourcespec::check_fog ( bool  fogged  )  [inline]

Definition at line 128 of file soundsource.hpp.

References check_fogged.

sourcespec& soundsource::sourcespec::location ( const gamemap::location loc  )  [inline]

Definition at line 133 of file soundsource.hpp.

References locations.

sourcespec& soundsource::sourcespec::full_range ( int  range_  )  [inline]

Definition at line 138 of file soundsource.hpp.

References range.

sourcespec& soundsource::sourcespec::fade_range ( int  range_  )  [inline]

Definition at line 143 of file soundsource.hpp.

References faderange.


Friends And Related Function Documentation

friend class manager [friend]

Definition at line 148 of file soundsource.hpp.

friend class positional_source [friend]

Definition at line 149 of file soundsource.hpp.


Member Data Documentation

const std::string& soundsource::sourcespec::id [private]

Definition at line 103 of file soundsource.hpp.

Referenced by soundsource::manager::add().

const std::string& soundsource::sourcespec::files [private]

Definition at line 104 of file soundsource.hpp.

Definition at line 106 of file soundsource.hpp.

Definition at line 107 of file soundsource.hpp.

Definition at line 109 of file soundsource.hpp.

Referenced by loop().

Definition at line 110 of file soundsource.hpp.

Referenced by full_range().

Definition at line 111 of file soundsource.hpp.

Referenced by fade_range().

Definition at line 112 of file soundsource.hpp.

Referenced by check_fog().

Definition at line 114 of file soundsource.hpp.

Referenced by location().


The documentation for this class was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs