NLSOUND::CBackgroundSoundManager::TSoundStatus Struct Reference


Public Member Functions

 TSoundStatus (TSoundData &sd, NLMISC::CVector position, float gain, float distance, bool inside)
 Constructor.


Data Fields

float Distance
 The distance beween listener and source.

float Gain
bool Inside
 flag if inside a sound zone

NLMISC::CVector Position
 The position of the source.

TSoundDataSoundData
 The data of the sound.


Constructor & Destructor Documentation

NLSOUND::CBackgroundSoundManager::TSoundStatus::TSoundStatus TSoundData sd,
NLMISC::CVector  position,
float  gain,
float  distance,
bool  inside
[inline]
 

Constructor.

Definition at line 282 of file background_sound_manager.h.

References Gain, Inside, and SoundData.

00283                         : SoundData(sd), Position(position), Gain(gain), Distance(distance), Inside(inside)
00284                 {}


Field Documentation

float NLSOUND::CBackgroundSoundManager::TSoundStatus::Distance
 

The distance beween listener and source.

Definition at line 278 of file background_sound_manager.h.

float NLSOUND::CBackgroundSoundManager::TSoundStatus::Gain
 

The relative gain of the source. This is used for patatoid competition.when a smaller patatoid mute bigger one.

Definition at line 276 of file background_sound_manager.h.

Referenced by TSoundStatus(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

bool NLSOUND::CBackgroundSoundManager::TSoundStatus::Inside
 

flag if inside a sound zone

Definition at line 280 of file background_sound_manager.h.

Referenced by TSoundStatus(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

NLMISC::CVector NLSOUND::CBackgroundSoundManager::TSoundStatus::Position
 

The position of the source.

Definition at line 272 of file background_sound_manager.h.

Referenced by NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

TSoundData& NLSOUND::CBackgroundSoundManager::TSoundStatus::SoundData
 

The data of the sound.

Definition at line 270 of file background_sound_manager.h.

Referenced by TSoundStatus(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 14:32:10 2004 for NeL by doxygen 1.3.6