📄 brewgamecanvas.h
字号:
/*===========================================================================
FILE: BrewGameCanvas.h
===========================================================================*/
#ifndef BREWGAMECANVAS_H
#define BREWGAMECANVAS_H
//*****************************************************************************
// INCLUDE FILES
//*****************************************************************************
#include "Itf_BrewCanvas.h"
#include "BrewGame.h"
#include "global.h"
//*****************************************************************************
// DEFINITIONS
//*****************************************************************************
//*****************************************************************************
// ENUMERATED TYPE DEFINITIONS
//*****************************************************************************
//*****************************************************************************
// GLOBAL APPLICATION DATA STRUCTURES
//*****************************************************************************
#include "AEEMenu.h"
class CBrewGameCanvas:public IBrewCanvas{
public:
CBrewGameCanvas();
virtual ~CBrewGameCanvas();
public:
void *frame;
UINT32 paintCounter;
public:
void setFrame(void *f);
void paint(IDisplay *d, IGraphics *g);
boolean keyPressed(UINT16 code, UINT32 param);
boolean keyReleased(UINT16 code, UINT32 param);
boolean keyRepeated(UINT16 code, UINT32 param);
boolean key(UINT16 code, UINT32 param);
void Release();
private:
boolean CreateBitmap(IDisplay *d,IBitmap ** ppIBitmap,UINT16 w,UINT16 h);
boolean m_bExit;
void DrawRect(IDisplay *d);
void DrawHand(IDisplay *d);
boolean AddMenuItem(IMenuCtl * pMenu, UINT16 wTextID, UINT16 wImageID, UINT16 wItemID,uint32 dwData);
void BuildMainMenu();
void DrawChessBoard(IDisplay *d,IGraphics *g);
void DrawChess(IDisplay *d);
boolean m_bMainMenu;
boolean m_bHaveMainMenu;
boolean m_bUp,m_bDown,m_bLeft,m_bRight;
boolean m_bClockJust;
IBitmap* pHand,*pImage[6],*pChess[14],*pGeneral,*pRiver;
void DrawClock(IDisplay *d);
boolean Process_CLR_Key(UINT16 code,UINT32 param);
boolean Process_5_SelectKey(UINT16 code,UINT32 param);
public:
INT8 m_cOldColor;
AEERect handRect;
INT16 xPos;
INT16 yPos;
boolean m_bShowMenu;
boolean m_bShowHand;
void BuildMenu();
void SetMenuStyle(IMenuCtl* pMenuCtl);
};
IBrewCanvas *CreateGameCanvas();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -