#include <context_sound.h>
Inherits NLSOUND::IContextSoundContainer.
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 CSound * | getSound (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 |
Definition at line 118 of file context_sound.h.
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.
anonymous enum [private] |
Definition at line 121 of file context_sound.h.
| virtual void NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::addSound | ( | CSound * | sound, | |
| const std::string & | baseName | |||
| ) | [inline, private, virtual] |
Implements NLSOUND::IContextSoundContainer.
Definition at line 140 of file context_sound.h.
References NLMISC::fromString(), NLSOUND::CSound::getMaxDistance(), NLSOUND::CSound::getName(), NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::JOKER_ARRAY_SIZE, nlassert, nlassertex, nlwarning, and NLMISC::CStringMapper::unmap().
| virtual float NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getMaxDistance | ( | ) | const [inline, private, virtual] |
Implements NLSOUND::IContextSoundContainer.
Definition at line 135 of file context_sound.h.
| virtual CSound* NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::getSound | ( | const CSoundContext & | context, | |
| uint32 | randomValue | |||
| ) | [inline, private, virtual] |
Implements NLSOUND::IContextSoundContainer.
Definition at line 236 of file context_sound.h.
References NLSOUND::CSoundContext::Args, and NLSOUND::CContextMatcher< NbJoker, UseRandom, Shift >::JOKER_ARRAY_SIZE.
| 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().
| 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.
uint32 NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::_ContextArgsIndex[JOKER_ARRAY_SIZE] [private] |
Definition at line 263 of file context_sound.h.
THashContextSound NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::_ContextSounds [private] |
Definition at line 264 of file context_sound.h.
float NLSOUND::CContextSoundContainer< NbJoker, UseRandom, Shift >::_MaxDist [private] |
Definition at line 265 of file context_sound.h.
1.6.1