mine.h
资源名称:brewmine3.rar [点击查看]
上传用户:yulinhuamu
上传日期:2009-12-26
资源大小:7287k
文件大小:1k
源码类别:
BREW编程
开发平台:
Visual C++
- #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