Etterna 0.74.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
AnnouncerManager Class Reference

The commentators who say seemlingly random things during gameplay. More...

#include <AnnouncerManager.h>

Collaboration diagram for AnnouncerManager:
Collaboration graph
[legend]

Public Member Functions

void GetAnnouncerNames (std::vector< std::string > &AddTo)
 Retrieve the announcer names.
 
bool DoesAnnouncerExist (const std::string &sAnnouncerName)
 Determine if the specified announcer exists.
 
void SwitchAnnouncer (const std::string &sNewAnnouncerName)
 Switch to a new specified announcer.
 
std::string GetCurAnnouncerName () const
 Retrieve the current announcer's name.
 
void NextAnnouncer ()
 
std::string GetPathTo (const std::string &sFolderName)
 
bool HasSoundsFor (const std::string &sFolderName)
 
void PushSelf (lua_State *L)
 

Protected Member Functions

std::string GetPathTo (const std::string &AnnouncerPath, const std::string &sFolderName)
 

Static Protected Member Functions

static std::string GetAnnouncerDirFromName (const std::string &sAnnouncerName)
 

Protected Attributes

std::string m_sCurAnnouncerName
 the current announcer's name.
 

Detailed Description

The commentators who say seemlingly random things during gameplay.

Member Function Documentation

◆ DoesAnnouncerExist()

bool AnnouncerManager::DoesAnnouncerExist ( const std::string &  sAnnouncerName)

Determine if the specified announcer exists.

Parameters
sAnnouncerNamethe announcer we're checking for.
Returns
true if it exists, false otherwise.

◆ GetAnnouncerNames()

void AnnouncerManager::GetAnnouncerNames ( std::vector< std::string > &  AddTo)

Retrieve the announcer names.

Parameters
AddTothe list of announcer names.

◆ GetCurAnnouncerName()

std::string AnnouncerManager::GetCurAnnouncerName ( ) const
inline

Retrieve the current announcer's name.

Returns
the current announcer's name.

◆ SwitchAnnouncer()

void AnnouncerManager::SwitchAnnouncer ( const std::string &  sNewAnnouncerName)

Switch to a new specified announcer.

Parameters
sNewAnnouncerNamethe new announcer the Player will be listening to.

The documentation for this class was generated from the following files: