Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

sound
Class CSoundGroupMgr

   in SoundGroupMgr.h
   in SoundGroupMgr.cpp

class CSoundGroupMgr


Field Summary
 vector< CSoundGroup* > m_Groups
          
 static CSoundGroupMgr* m_pInstance
          ========================================================================= File : SoundGroupMgr.
 
Constructor Summary
private  CSoundGroupMgr( const CSoundGroupMgr& ref )
          
private  CSoundGroupMgr()
          
 
Method Summary
 size_t AddGroup( const char* XMLFile )
          RemoveGroup() in: size_t index into m_Groups out: vector::iterator - one past the index removed (sometimes useful) Removes and Releases a given soundgroup
 static void DeleteInstance()
          UpdateSoundGroups() updates all soundgroups, call in Frame()
 static CSoundGroupMgr* GetInstance()
          
private CSoundGroupMgr& operator=( const CSoundGroupMgr& ref )
          
 void PlayNext( size_t index )
          AddGroup() in: const char *XMLFile - the filename of the SoundGroup.
 vector< CSoundGroup* >::iterator RemoveGroup( vector< CSoundGroup* >::iterator iter )
          UpdateSoundGroups() updates all soundgroups, call in Frame()
 vector< CSoundGroup* >::iterator RemoveGroup( size_t index )
          RemoveGroup() in: vector::iterator - item to remove out: vector::iterator - one past the index removed (sometimes useful) Removes and Releases a given soundgroup
 void UpdateSoundGroups( float TimeSinceLastFrame )
          PlayNext() in: size_t index - index into m_Groups Plays the next queued sound in an indexed group
 

Field Detail

m_Groups

public vector< CSoundGroup* > m_Groups;

m_pInstance

public static CSoundGroupMgr* m_pInstance;
========================================================================= File : SoundGroupMgr.h Project : 0 A.D. Description : Manages and updates SoundGroups =========================================================================


Constructor Detail

CSoundGroupMgr

private CSoundGroupMgr( const CSoundGroupMgr& ref );

CSoundGroupMgr

private CSoundGroupMgr();


Method Detail

AddGroup

public size_t AddGroup( const char* XMLFile );
RemoveGroup() in: size_t index into m_Groups out: vector::iterator - one past the index removed (sometimes useful) Removes and Releases a given soundgroup

DeleteInstance

public static void DeleteInstance();
UpdateSoundGroups() updates all soundgroups, call in Frame()

GetInstance

public static CSoundGroupMgr* GetInstance();

operator=

private CSoundGroupMgr& operator=( const CSoundGroupMgr& ref );

PlayNext

public void PlayNext( size_t index );
AddGroup() in: const char *XMLFile - the filename of the SoundGroup.xml to open out: size_t index into m_Groups Loads the given XML file and returns an index for later use

RemoveGroup

public vector< CSoundGroup* >::iterator RemoveGroup( vector< CSoundGroup* >::iterator iter );
UpdateSoundGroups() updates all soundgroups, call in Frame()

RemoveGroup

public vector< CSoundGroup* >::iterator RemoveGroup( size_t index );
RemoveGroup() in: vector::iterator - item to remove out: vector::iterator - one past the index removed (sometimes useful) Removes and Releases a given soundgroup

UpdateSoundGroups

public void UpdateSoundGroups( float TimeSinceLastFrame );
PlayNext() in: size_t index - index into m_Groups Plays the next queued sound in an indexed group

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD