NLSOUND::CBackgroundSoundManager::TSoundData Struct Reference


Detailed Description

Storage for all a sound in a layer.

Definition at line 238 of file background_sound_manager.h.

Public Member Functions

void serial (NLMISC::IStream &s)

Data Fields

bool IsPath
 Flag for path/patatoid sound.

NLMISC::CVector MaxBox
 The max vector of the bounding box.

float MaxDist
 The max earing distance of the sound.

NLMISC::CVector MinBox
 The min vector of the bounding box.

std::vector< NLMISC::CVectorPoints
 The vector of points compositing the primitive.

bool Selected
 Flag telling if this sound is currently selected for play by bounding box.

CSoundSound
 The reference to the sound.

NLMISC::TStringId SoundName
 The name of the sound.

CSourceCommonSource
 A source instance of the sound (may be NULL).

float Surface
 The surface of the bounding box (used for patatoid competition).


Member Function Documentation

void NLSOUND::CBackgroundSoundManager::TSoundData::serial NLMISC::IStream s  ) 
 

Definition at line 1462 of file background_sound_manager.cpp.

References NLSOUND::CAudioMixerUser::getSoundId(), IsPath, NLMISC::CStringMapper::map(), MaxDist, s, Sound, and Source.

01463 {
01464         std::string str;
01465 
01466         if (s.isReading())
01467         {
01468                 CAudioMixerUser *mixer = CAudioMixerUser::instance();
01469                 s.serial(str);
01470                 SoundName = NLMISC::CStringMapper::map(str);
01471                 Sound = mixer->getSoundId(SoundName);
01472                 Source = NULL;
01473                 Selected = false;
01474         }
01475         else
01476         {
01477                 s.serial(const_cast<std::string&>(NLMISC::CStringMapper::unmap(SoundName)));
01478         }
01479         s.serial(MinBox);
01480         s.serial(MaxBox);
01481         s.serial(Surface);
01482         s.serial(MaxDist);
01483         s.serial(IsPath);
01484         s.serialCont(Points);
01485 }


Field Documentation

bool NLSOUND::CBackgroundSoundManager::TSoundData::IsPath
 

Flag for path/patatoid sound.

Definition at line 256 of file background_sound_manager.h.

Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

NLMISC::CVector NLSOUND::CBackgroundSoundManager::TSoundData::MaxBox
 

The max vector of the bounding box.

Definition at line 250 of file background_sound_manager.h.

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

float NLSOUND::CBackgroundSoundManager::TSoundData::MaxDist
 

The max earing distance of the sound.

Definition at line 254 of file background_sound_manager.h.

Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

NLMISC::CVector NLSOUND::CBackgroundSoundManager::TSoundData::MinBox
 

The min vector of the bounding box.

Definition at line 248 of file background_sound_manager.h.

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

std::vector<NLMISC::CVector> NLSOUND::CBackgroundSoundManager::TSoundData::Points
 

The vector of points compositing the primitive.

Definition at line 258 of file background_sound_manager.h.

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

bool NLSOUND::CBackgroundSoundManager::TSoundData::Selected
 

Flag telling if this sound is currently selected for play by bounding box.

Definition at line 260 of file background_sound_manager.h.

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

CSound* NLSOUND::CBackgroundSoundManager::TSoundData::Sound
 

The reference to the sound.

Definition at line 243 of file background_sound_manager.h.

Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

NLMISC::TStringId NLSOUND::CBackgroundSoundManager::TSoundData::SoundName
 

The name of the sound.

Definition at line 241 of file background_sound_manager.h.

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

CSourceCommon* NLSOUND::CBackgroundSoundManager::TSoundData::Source
 

A source instance of the sound (may be NULL).

Definition at line 245 of file background_sound_manager.h.

Referenced by NLSOUND::CBackgroundSoundManager::addSound(), serial(), and NLSOUND::CBackgroundSoundManager::updateBackgroundStatus().

float NLSOUND::CBackgroundSoundManager::TSoundData::Surface
 

The surface of the bounding box (used for patatoid competition).

Definition at line 252 of file background_sound_manager.h.

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


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