mine.h
上传用户:yulinhuamu
上传日期:2009-12-26
资源大小:7287k
文件大小:1k
源码类别:

BREW编程

开发平台:

Visual C++

  1. #ifndef _MY_MINE_H
  2. #define _MY_MINE_H
  3. #include "Aeestdlib.h"
  4. #include "AEEAppGen.h"
  5. #include "AEEGraphics.h"
  6. #include "IMineMusic.h"
  7. #define MINE_LINE_NUM 9
  8. #define MINE_COLU_NUM 9
  9. #define MINE_NUM     10
  10. #define MINE_FLAGE       9
  11. #define MINE_GAMETIMER   100
  12. typedef struct _TElement
  13. {
  14. boolean m_bSel;
  15. uint16   m_Stat;
  16. }TElement;
  17. typedef struct _TScore
  18. {
  19. JulianType m_Date;
  20. int m_nScore;
  21. }TScore;
  22. typedef enum
  23. {
  24. STAT_START,
  25. STAT_SUCCESS,
  26. STAT_FAILURE
  27. }TGAMESTAT;
  28. typedef struct _IWinmine
  29. {
  30. AEEApplet* m_pApp;
  31. AEERect m_GameRect;
  32. AEERect m_MenuRect;
  33. AEERect m_PlayRect;
  34. TElement m_Data[MINE_LINE_NUM][MINE_COLU_NUM];
  35. int m_PointX;
  36. int m_PointY;
  37. int m_ElementWide;
  38. int m_ElementHeight;
  39. int m_OffsetX;
  40. int m_OffsetY;
  41. int m_Count;
  42. int m_TimerCount;
  43. int m_MaxScore;
  44. TGAMESTAT m_Result;
  45. IImage* m_pImage;
  46. IImage* m_pGameImage;
  47. IGraphics* m_pGraphic;
  48. IMineMusic* m_pMusic;
  49. }IWinmine;
  50. IWinmine* IWINMINE_CreateInstance();
  51. boolean IWINMINE_Release(IWinmine* pMine);
  52. boolean IWINMINE_Start(IWinmine* pMine);
  53. boolean IWINMINE_Pause(IWinmine* pMine);
  54. boolean IWINMINE_HandleEvent(IWinmine* pMine, uint16 wParam);
  55. boolean IWINMINE_GetPlayRect(IWinmine* pMine,AEERect *rt);
  56. boolean IWINMINE_GetMaxScore(IWinmine* pMine,TScore* score);
  57. boolean IWINMINE_ResetMaxScore(IWinmine* pMine);
  58. boolean IWINMINE_DrawIntroScreen(IWinmine* pMine);
  59. #endif