Etterna 0.74.4
Loading...
Searching...
No Matches
AnnouncerManager.h
1#ifndef ANNOUNCER_MANAGER_H
2#define ANNOUNCER_MANAGER_H
3
4#include "RageUtil/Misc/RageTypes.h"
7{
8 public:
11
15 void GetAnnouncerNames(std::vector<std::string>& AddTo);
20 bool DoesAnnouncerExist(const std::string& sAnnouncerName);
25 void SwitchAnnouncer(const std::string& sNewAnnouncerName);
29 std::string GetCurAnnouncerName() const { return m_sCurAnnouncerName; };
30 void NextAnnouncer();
31
32 std::string GetPathTo(const std::string& sFolderName);
33 bool HasSoundsFor(const std::string& sFolderName);
34
35 // Lua
36 void PushSelf(lua_State* L);
37
38 protected:
39 static std::string GetAnnouncerDirFromName(
40 const std::string& sAnnouncerName);
41 std::string GetPathTo(const std::string& AnnouncerPath,
42 const std::string& sFolderName);
45};
46
47extern AnnouncerManager*
48 ANNOUNCER; // global and accessible from anywhere in our program
49
50#endif
The commentators who say seemlingly random things during gameplay.
Definition AnnouncerManager.h:7
std::string m_sCurAnnouncerName
the current announcer's name.
Definition AnnouncerManager.h:44
void GetAnnouncerNames(std::vector< std::string > &AddTo)
Retrieve the announcer names.
Definition AnnouncerManager.cpp:33
bool DoesAnnouncerExist(const std::string &sAnnouncerName)
Determine if the specified announcer exists.
Definition AnnouncerManager.cpp:44
void SwitchAnnouncer(const std::string &sNewAnnouncerName)
Switch to a new specified announcer.
Definition AnnouncerManager.cpp:65
std::string GetCurAnnouncerName() const
Retrieve the current announcer's name.
Definition AnnouncerManager.h:29