📄 pushbox.h
字号:
/***************************************************************************/
/* */
/* PushBox.h */
/* */
/* common defination for PushBox game. */
/* */
/***************************************************************************/
#ifndef _PushBox_H_
#define _PushBox_H_
#include "AEEModGen.h"
#include "AEEAppGen.h"
#include "AEEShell.h"
#include "AEEFile.h"
#include "AEEDB.h"
#include "AEENet.h"
#include "AEESound.h"
#include "AEETapi.h"
#include "AEEMenu.h"
#include "AEEStdLib.h"
#include "aeemenu.h"
#include "aeetext.h"
#include "AEEGraphics.h"
#include "AEEMenu.h"
#include "pushbox.brh"
//the map initializtion information
#define ROWNUM 8
#define COLNUM 8
#define ROWHEIGHT 15
#define COLWIDTH 15
#define INITTOP 20
#define INITLEFT 5
#define IDC_MAIN_MENU_START 0x01 ///the game state.
#define IDC_MAIN_MENU_HELP 0x02
#define IDC_MAIN_MENU_QUIT 0x03
enum BoxState
{
BlockBox,
SafeWay,
DesBox,
People,
MoveBox
};
enum GameState
{
GameRuning,
GameEnd
};
typedef struct _PushBox {
AEEApplet a ; // First element of this structure must be AEEApplet
AEEDeviceInfo DeviceInfo; // always have access to the hardware device information
enum BoxState GameState; //Applet status
int BoxSum; //the sum of the box
AEERect ScreenRect; // Screen Rect
IMenuCtl* m_pMenu; //main menu
IDialog *m_pMenuDialog;
IDialog *m_pGameDialog;
ITextCtl *pITextCtl;
int x; ////Box status information
int y;
int m_nScrWidth;
int m_nScrHeight;
int People_dx;
int People_dy;
AEERect m_nClntAreaRect;
AEEPoint point; //Client area position
int BoxStatus[ROWNUM][COLNUM]; //Box status
} PushBox;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -