2002-11-16 07:49:38 +00:00
|
|
|
#ifndef ANNOUNCER_MANAGER_H
|
|
|
|
|
#define ANNOUNCER_MANAGER_H
|
2002-05-20 08:59:37 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: AnnouncerManager
|
|
|
|
|
|
|
|
|
|
Desc: Manages which graphics and sounds are chosed to load. Every time
|
|
|
|
|
a sound or graphic is loaded, it gets the path from the AnnouncerManager.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "RageUtil.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AnnouncerManager
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
AnnouncerManager();
|
|
|
|
|
|
|
|
|
|
void GetAnnouncerNames( CStringArray& AddTo );
|
2002-07-23 01:41:40 +00:00
|
|
|
bool DoesAnnouncerExist( CString sAnnouncerName );
|
|
|
|
|
void SwitchAnnouncer( CString sNewAnnouncerName );
|
|
|
|
|
CString GetCurAnnouncerName() { return m_sCurAnnouncerName; };
|
2003-04-13 04:50:08 +00:00
|
|
|
void NextAnnouncer();
|
2002-07-23 01:41:40 +00:00
|
|
|
|
2002-08-27 23:31:41 +00:00
|
|
|
CString GetPathTo( CString sFolderName );
|
2002-10-24 01:51:01 +00:00
|
|
|
bool HasSoundsFor( CString sFolderName );
|
2002-05-20 08:59:37 +00:00
|
|
|
|
|
|
|
|
protected:
|
2002-07-23 01:41:40 +00:00
|
|
|
static CString GetAnnouncerDirFromName( CString sAnnouncerName );
|
2003-04-01 19:46:50 +00:00
|
|
|
CString GetPathTo( CString AnnouncerPath, CString sFolderName );
|
2002-05-20 08:59:37 +00:00
|
|
|
|
2002-07-23 01:41:40 +00:00
|
|
|
CString m_sCurAnnouncerName;
|
2002-05-20 08:59:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern AnnouncerManager* ANNOUNCER; // global and accessable from anywhere in our program
|
2002-11-16 07:49:38 +00:00
|
|
|
|
|
|
|
|
#endif
|