Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

AnnouncerManager.h

Go to the documentation of this file.
00001 #ifndef ANNOUNCER_MANAGER_H 00002 #define ANNOUNCER_MANAGER_H 00003 00004 class AnnouncerManager 00005 { 00006 public: 00007 AnnouncerManager(); 00008 00009 void GetAnnouncerNames( CStringArray& AddTo ); 00010 bool DoesAnnouncerExist( CString sAnnouncerName ); 00011 void SwitchAnnouncer( CString sNewAnnouncerName ); 00012 CString GetCurAnnouncerName() { return m_sCurAnnouncerName; }; 00013 void NextAnnouncer(); 00014 00015 CString GetPathTo( CString sFolderName ); 00016 bool HasSoundsFor( CString sFolderName ); 00017 00018 protected: 00019 static CString GetAnnouncerDirFromName( CString sAnnouncerName ); 00020 CString GetPathTo( CString AnnouncerPath, CString sFolderName ); 00021 00022 CString m_sCurAnnouncerName; 00023 }; 00024 00025 00026 extern AnnouncerManager* ANNOUNCER; // global and accessable from anywhere in our program 00027 00028 #endif 00029 00030 /* 00031 * (c) 2001-2004 Chris Danford 00032 * All rights reserved. 00033 * 00034 * Permission is hereby granted, free of charge, to any person obtaining a 00035 * copy of this software and associated documentation files (the 00036 * "Software"), to deal in the Software without restriction, including 00037 * without limitation the rights to use, copy, modify, merge, publish, 00038 * distribute, and/or sell copies of the Software, and to permit persons to 00039 * whom the Software is furnished to do so, provided that the above 00040 * copyright notice(s) and this permission notice appear in all copies of 00041 * the Software and that both the above copyright notice(s) and this 00042 * permission notice appear in supporting documentation. 00043 * 00044 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00045 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00046 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00047 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00048 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00049 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00050 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00051 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00052 * PERFORMANCE OF THIS SOFTWARE. 00053 */

Generated on Thu Jan 27 20:57:17 2005 for StepMania by doxygen 1.3.7