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

📄 mine.h

📁 brew3.1做的挖雷游戏
💻 H
字号:
#ifndef _MY_MINE_H
#define _MY_MINE_H

#include "Aeestdlib.h"
#include "AEEAppGen.h"
#include "AEEGraphics.h"
#include "IMineMusic.h"

#define MINE_LINE_NUM 9
#define MINE_COLU_NUM 9
#define MINE_NUM	    10
#define MINE_FLAGE       9
#define MINE_GAMETIMER   100

typedef struct _TElement
{
	boolean m_bSel;
	uint16   m_Stat;
}TElement;
typedef struct _TScore
{
	JulianType	m_Date;
	int			m_nScore;			
}TScore;
typedef enum
{
	STAT_START,
	STAT_SUCCESS,
	STAT_FAILURE
}TGAMESTAT;
typedef struct _IWinmine
{
	AEEApplet*	m_pApp;

	AEERect	m_GameRect;
	AEERect	m_MenuRect;
	AEERect	m_PlayRect;	

	TElement	m_Data[MINE_LINE_NUM][MINE_COLU_NUM];	

	int	m_PointX;
	int	m_PointY;

	int m_ElementWide;
	int m_ElementHeight;

	int m_OffsetX;
	int m_OffsetY;

	int m_Count;
	int m_TimerCount;
	int m_MaxScore;
	TGAMESTAT m_Result;

	IImage* m_pImage;
	IImage* m_pGameImage;	
	IGraphics*	m_pGraphic;	
	IMineMusic*	m_pMusic;
}IWinmine;

IWinmine*	IWINMINE_CreateInstance();
boolean		IWINMINE_Release(IWinmine* pMine);
boolean		IWINMINE_Start(IWinmine* pMine);
boolean		IWINMINE_Pause(IWinmine* pMine);
boolean		IWINMINE_HandleEvent(IWinmine* pMine, uint16 wParam);
boolean		IWINMINE_GetPlayRect(IWinmine* pMine,AEERect *rt);
boolean		IWINMINE_GetMaxScore(IWinmine* pMine,TScore* score);
boolean		IWINMINE_ResetMaxScore(IWinmine* pMine);
boolean		IWINMINE_DrawIntroScreen(IWinmine* pMine);
#endif

⌨️ 快捷键说明

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