NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift > Class Template Reference

#include <context_sound.h>

Inherits NLSOUND::IContextSoundContainer.

List of all members.

Private Types

enum  { JOKER_ARRAY_SIZE = (NbJoker == 0 ? 1 : NbJoker) }
typedef CHashMap
< CContextMatcher< NbJoker,
UseRandom, Shift >, CSound
*, typename CContextMatcher
< NbJoker, UseRandom, Shift >
::CHash > 
THashContextSound

Private Member Functions

virtual void init (uint *contextArgsIndex)
virtual float getMaxDistance () const
virtual void addSound (CSound *sound, const std::string &baseName)
virtual CSoundgetSound (const CSoundContext &context, uint32 randomValue)
void getSoundList (std::vector< std::pair< std::string, CSound * > > &subsounds) const

Private Attributes

uint32 _ContextArgsIndex [JOKER_ARRAY_SIZE]
THashContextSound _ContextSounds
float _MaxDist

Detailed Description

template<uint NbJoker, bool UseRandom, uint Shift = 5>
class NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >

Definition at line 118 of file context_sound.h.


Member Typedef Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
typedef CHashMap<CContextMatcher<NbJoker, UseRandom, Shift>, CSound *, typename CContextMatcher<NbJoker, UseRandom, Shift>::CHash> NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::THashContextSound [private]

Definition at line 127 of file context_sound.h.


Member Enumeration Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
anonymous enum [private]
Enumerator:
JOKER_ARRAY_SIZE 

Definition at line 121 of file context_sound.h.


Member Function Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::addSound ( CSound sound,
const std::string &  baseName 
) [inline, private, virtual]
template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual float NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getMaxDistance (  )  const [inline, private, virtual]

Implements NLSOUND::IContextSoundContainer.

Definition at line 135 of file context_sound.h.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual CSound* NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getSound ( const CSoundContext context,
uint32  randomValue 
) [inline, private, virtual]
template<uint NbJoker, bool UseRandom, uint Shift = 5>
void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getSoundList ( std::vector< std::pair< std::string, CSound * > > &  subsounds  )  const [inline, private, virtual]

Implements NLSOUND::IContextSoundContainer.

Definition at line 253 of file context_sound.h.

References NLMISC::CStringMapper::unmap().

template<uint NbJoker, bool UseRandom, uint Shift = 5>
virtual void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::init ( uint contextArgsIndex  )  [inline, private, virtual]

Implements NLSOUND::IContextSoundContainer.

Definition at line 129 of file context_sound.h.

References NLMISC::CFastMem::memcpy.


Member Data Documentation

template<uint NbJoker, bool UseRandom, uint Shift = 5>
uint32 NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::_ContextArgsIndex[JOKER_ARRAY_SIZE] [private]

Definition at line 263 of file context_sound.h.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
THashContextSound NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::_ContextSounds [private]

Definition at line 264 of file context_sound.h.

template<uint NbJoker, bool UseRandom, uint Shift = 5>
float NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::_MaxDist [private]

Definition at line 265 of file context_sound.h.


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

Generated on Thu Jan 7 08:30:22 2010 for NeL by  doxygen 1.6.1