bfield.h

来自「讲mfc的书」· C头文件 代码 · 共 62 行

H
62
字号
// bfield.h : main header file for the BFIELD application
//

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CBfieldApp:
// See bfield.cpp for the implementation of this class
//

class CBfieldApp : public CWinApp
{
public:
	CBfieldApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBfieldApp)
	public:
	virtual BOOL InitInstance();
	virtual int DoMessageBox(LPCTSTR lpszPrompt, UINT nType, UINT nIDPrompt);
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CBfieldApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#define SETUP_MODE 0
#define PLAY_MODE 1

#define PLACED_CP 1
#define PLACED_HOW 2
#define PLACED_MIS 4
#define PLACED_TANK 8
#define PLACED_APC 16

#define LEN_CP 5
#define LEN_HOW 4
#define LEN_MIS 3
#define LEN_TANK 3
#define LEN_APC 2

#define DIR_NORTH 0
#define DIR_SOUTH 1
#define DIR_WEST 2
#define DIR_EAST 3

#define CMD_CLICK 1
#define CMD_REPLY 2
#define CMD_RESIGN 3
/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?