2008-03-03 22:52:07 +00:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
// Blabber [SoundSystem.h]
|
|
|
|
// Controls sound effects.
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef SOUND_SYSTEM_H
|
|
|
|
#define SOUND_SYSTEM_H
|
|
|
|
|
|
|
|
#ifndef __STRING__
|
|
|
|
#include <string>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SIMPLE_GAME_SOUND_H
|
|
|
|
#include <game/SimpleGameSound.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class SoundSystem {
|
|
|
|
public:
|
|
|
|
static SoundSystem *Instance();
|
2008-04-07 19:32:07 +00:00
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
public:
|
|
|
|
SoundSystem();
|
|
|
|
~SoundSystem();
|
2008-04-07 19:32:07 +00:00
|
|
|
|
|
|
|
std::string NewMessageSound();
|
|
|
|
std::string NewMessageSoundLeaf();
|
|
|
|
void SetNewMessageSound(std::string new_message_sound);
|
2008-03-03 22:52:07 +00:00
|
|
|
void PlayNewMessageSound();
|
|
|
|
|
2008-04-07 19:32:07 +00:00
|
|
|
std::string MessageSound();
|
|
|
|
std::string MessageSoundLeaf();
|
|
|
|
void SetMessageSound(std::string message_sound);
|
2008-03-03 22:52:07 +00:00
|
|
|
void PlayMessageSound();
|
|
|
|
|
2008-04-07 19:32:07 +00:00
|
|
|
std::string UserOnlineSound();
|
|
|
|
std::string UserOnlineSoundLeaf();
|
|
|
|
void SetUserOnlineSound(std::string user_online_sound);
|
2008-03-03 22:52:07 +00:00
|
|
|
void PlayUserOnlineSound();
|
|
|
|
|
2008-04-07 19:32:07 +00:00
|
|
|
std::string UserOfflineSound();
|
|
|
|
std::string UserOfflineSoundLeaf();
|
|
|
|
void SetUserOfflineSound(std::string user_offline_sound);
|
2008-03-03 22:52:07 +00:00
|
|
|
void PlayUserOfflineSound();
|
|
|
|
|
2008-04-07 19:32:07 +00:00
|
|
|
std::string AlertSound();
|
|
|
|
std::string AlertSoundLeaf();
|
|
|
|
void SetAlertSound(std::string alert_sound);
|
2008-03-03 22:52:07 +00:00
|
|
|
void PlayAlertSound();
|
2008-04-07 19:32:07 +00:00
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
private:
|
2008-04-07 19:32:07 +00:00
|
|
|
std::string _new_message_sound;
|
|
|
|
std::string _message_sound;
|
|
|
|
std::string _user_online_sound;
|
|
|
|
std::string _user_offline_sound;
|
|
|
|
std::string _alert_sound;
|
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
BSimpleGameSound *_new_message_alarm;
|
|
|
|
BSimpleGameSound *_message_alarm;
|
|
|
|
BSimpleGameSound *_user_online_alarm;
|
|
|
|
BSimpleGameSound *_user_offline_alarm;
|
|
|
|
BSimpleGameSound *_alert_alarm;
|
2008-04-07 19:32:07 +00:00
|
|
|
|
2008-03-03 22:52:07 +00:00
|
|
|
private:
|
|
|
|
static SoundSystem *_instance;
|
|
|
|
};
|
|
|
|
|
2008-04-07 19:32:07 +00:00
|
|
|
#endif
|