FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::SoundSource Class Reference

Interface class between Instance / ActionAudio and SoundEmitter. More...

#include <soundsource.h>

+ Collaboration diagram for FIFE::SoundSource:

Public Member Functions

 SoundSource (Instance *instance)
 
 ~SoundSource ()
 
void setActionAudio (ActionAudio *audio)
 Sets the ActionAudio. More...
 
ActionAudiogetActionAudio () const
 Return ActionAudio. More...
 
void setPosition ()
 Sets the positon of the SoundEmitter, called from Instance. More...
 
void setDirection ()
 Sets the direction of the SoundEmitter, called from Instance. More...
 

Private Member Functions

void updateSoundEmitter ()
 Moves data from ActionAudio to SoundEmitter. More...
 

Private Attributes

Instancem_instance
 Associated Instance. More...
 
ActionAudiom_audio
 Actual ActionAudio. More...
 
SoundEmitterm_emitter
 Related SoundEmitter. More...
 
SoundChangeListenerm_listener
 InstanceChangeListener for position and direction. More...
 

Detailed Description

Interface class between Instance / ActionAudio and SoundEmitter.

Definition at line 45 of file soundsource.h.

Constructor & Destructor Documentation

Member Function Documentation

ActionAudio * FIFE::SoundSource::getActionAudio ( ) const

Return ActionAudio.

Owned by Object.

Definition at line 101 of file soundsource.cpp.

References m_audio.

void FIFE::SoundSource::setActionAudio ( ActionAudio audio)
void FIFE::SoundSource::setDirection ( )
void FIFE::SoundSource::setPosition ( )

Sets the positon of the SoundEmitter, called from Instance.

Definition at line 105 of file soundsource.cpp.

References FIFE::Instance::getLocationRef(), FIFE::Location::getMapCoordinates(), m_audio, m_emitter, m_instance, and FIFE::SoundEmitter::setPosition().

Referenced by FIFE::SoundChangeListener::onInstanceChanged(), and SoundSource().

+ Here is the caller graph for this function:

Member Data Documentation

ActionAudio* FIFE::SoundSource::m_audio
private
SoundEmitter* FIFE::SoundSource::m_emitter
private
Instance* FIFE::SoundSource::m_instance
private

Associated Instance.

Definition at line 73 of file soundsource.h.

Referenced by setDirection(), setPosition(), SoundSource(), updateSoundEmitter(), and ~SoundSource().

SoundChangeListener* FIFE::SoundSource::m_listener
private

InstanceChangeListener for position and direction.

Definition at line 79 of file soundsource.h.

Referenced by SoundSource(), and ~SoundSource().


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