Fetch the repository succeeded.
This action will force synchronization from ibc-dabing/Landlords, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
#ifndef BGMCONTROL_H
#define BGMCONTROL_H
#include "cards.h"
#include <QObject>
#include <QMediaPlayer>
#include <QMediaPlaylist>
class BGMControl : public QObject
{
Q_OBJECT
public:
enum RoleSex{Man, Woman};
enum CardType
{
Three,
Foue,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Jack,
Queen,
King,
Ace,
Tow,
SmallJoker,
BigJoker,
Three_Double,
Foue_Double,
Five_Double,
Six_Double,
Seven_Double,
Eight_Double,
Nine_Double,
Ten_Double,
Jack_Double,
Queen_Double,
King_Double,
Ace_Double ,
Tow_Double,
Three_Triple,
Foue_Triple,
Five_Triple,
Six_Triple,
Seven_Triple,
Eight_Triple,
Nine_Triple,
Ten_Triple,
Jack_Triple,
Queen_Triple,
King_Triple,
Ace_Triple,
Tow_Triple,
Plane, // 飞机
SequencePair, // 连对
ThreeBindOne, // 三带一
ThreeBindPair, // 三带一对
Sequence, // 顺子
FourBindTwo, // 四带二(单张)
FourBind2Pair, // 四带两对
Bomb, // 炸弹
JokerBomb, // 王炸
Pass1, // 过
Pass2,
Pass3,
Pass4,
MoreBiger1, // 大你
MoreBiger2,
Biggest, // 压死
// 抢地主
NoOrder, // 不叫
NoRob, // 不抢
Order, // 叫地主
Rob1, // 抢地主
Rob2,
Last1, // 只剩1张牌
Last2 // 只剩2张牌
};
enum AssistMusic
{
Dispatch, // 发牌
SelectCard, // 选牌
PlaneVoice, // 飞机
BombVoice, // 炸弹
Alert, // 提醒
};
explicit BGMControl(QObject *parent = nullptr);
void initPlayList();
void startBGM(int volume);
void stopBGM();
void playerRobLordMusic(int point, RoleSex sex, bool isFirst);
void playCardMusic(Cards cards, bool isFirst, RoleSex sex);
void playLastMusic(CardType type, RoleSex sex);
void playPassMusic(RoleSex sex);
void playAssistMusic(AssistMusic type);
void stopAssistMusic();
void playEndingMusic(bool isWin);
signals:
private:
QVector<QMediaPlayer*> m_players;
QVector<QMediaPlaylist*> m_lists;
};
#endif // BGMCONTROL_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。