GameWnd.h
Upload User: shyhai1508
Upload Date: 2007-06-11
Package Size: 48k
Code Size: 1k
Category:

BREW

Development Platform:

Visual C++

  1. #ifndef _GAMEWND_H_
  2. #define _GAMEWND_H_
  3. #include "AEESprite.h"
  4. typedef struct _PflyApp PflyApp;
  5. typedef struct _GameWnd GameWnd;
  6. struct _GameWnd{
  7. PflyApp* pMe;
  8. ISprite* pISprite;
  9. AEESpriteCmd rgCmds[14]; // wall sprites 2*4 + plane + 4 score sprites + terminator
  10. AEETileMap rgMaps[2];      // one background layers + terminator
  11. AEECallback cbTimer;
  12.     AEEPoint frameStart; //屏幕的逻辑起始坐标
  13. AEEPoint frameMax; //屏幕的逻辑最大长宽
  14. byte direction; //飞行角度
  15. int layer; //游戏分数
  16. int crashCounter; //crash之后的计数器
  17. boolean keyRight; //右键是否按下
  18. boolean keyLeft; //左键是否按下
  19. boolean isCrash; //是否分解
  20. uint16 BackGroundLayer[16];//Tile 索引数组
  21. };
  22. boolean GameWnd_New(GameWnd *pthis, PflyApp* pMe);
  23. boolean GameWnd_Open(GameWnd *pthis);
  24. void GameWnd_Close(GameWnd *pthis);
  25. boolean GameWnd_HandleEvent(GameWnd* pthis, AEEEvent eCode, uint16 wParam, uint32 dwParam);
  26. void GameWnd_Free(GameWnd* pthis);
  27. #endif