⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soundman.h

📁 过程的c++编译器 里面有超级玛丽的源代码 还有一个 管理系统的源代码
💻 H
字号:
#ifndef _SOUNDMAN_H_FILE_INCLUDED_

#define _SOUNDMAN_H_FILE_INCLUDED_

#include "Sound.h"

extern const char * BackMusic_Sound[2];
extern int BackMusic_Len[2];
extern const char * AttackDemon_Sound;
extern int AttackDemon_Len;
extern const char * AttackMario_Sound;
extern int AttackMario_Len;
extern const char * Block_Sound;
extern int Block_Len;
extern const char * Bullet_Sound;
extern int Bullet_Len;
extern const char * Coin_Sound;
extern int Coin_Len;
extern const char * Death_Sound;
extern int Death_Len;
extern const char * EatFlower_Sound;
extern int EatFlower_Len;
extern const char * FlowerRise_Sound;
extern int FlowerRise_Len;
extern const char * Jump_Sound;
extern int Jump_Len;
extern const char * KillDemon_Sound;
extern int KillDemon_Len;
extern const char * BrickBroken_Sound;
extern int BrickBroken_Len;

class CSoundMan
{
public:
	enum SOUNDNUM
	{
		ATTACKDEMON,
		ATTACKMARIO,
		BLOCK,
		BULLET,
		COIN,
		DEATH,
		EATFLOWER,
		FLOWERRISE,
		JUMP,
		KILLDEMON,
		BRICKBROKEN,
	};
	CSoundMan();
	void SetSound(CSound * Obj);
	void PlayBackMusic(int Num);
	void PlaySound(SOUNDNUM Num);
private:
	void * m_BackMusic;//背景音乐
	CSound * m_pSound;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -