⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pushmine.h

📁 一个机器自己学习玩扫雷游戏的程序!快试试!
💻 H
字号:
// PushMine.h : main header file for the PUSHMINE application
//

#if !defined(AFX_PUSHMINE_H__9E261BAF_0C1D_4410_AA78_E05088829B23__INCLUDED_)
#define AFX_PUSHMINE_H__9E261BAF_0C1D_4410_AA78_E05088829B23__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

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

#include "resource.h"		// main symbols
#include "MineArea.h"
#define STR_NUM                         10
#define STR_BUF_MAX                     256

#define DRAW_NOT_OPEN            0
#define DRAW_FLAG                1
#define DRAW_QUESTION_MARK_FLAG  2
#define DRAW_BLAST               3
#define DRAW_ERROR_FLAG          4
#define DRAW_MINE                5
#define DRAW_QUESTION_MARK       6
#define DRAW_NUMBER_8            7
#define DRAW_NUMBER_7            8
#define DRAW_NUMBER_6            9
#define DRAW_NUMBER_5           10
#define DRAW_NUMBER_4           11
#define DRAW_NUMBER_3           12
#define DRAW_NUMBER_2           13
#define DRAW_NUMBER_1           14
#define DRAW_EMPTY              15

#define PUSH_STATE_MINE         9
#define PUSH_STATE_NUMBER_8     8
#define PUSH_STATE_NUMBER_7     7
#define PUSH_STATE_NUMBER_6     6
#define PUSH_STATE_NUMBER_5     5
#define PUSH_STATE_NUMBER_4     4
#define PUSH_STATE_NUMBER_3     3
#define PUSH_STATE_NUMBER_2     2
#define PUSH_STATE_NUMBER_1     1
#define PUSH_STATE_EMPTY        0
#define PUSH_STATE_OPENED       16
#define PUSH_EMPTY_AREA_START   1000

//#define STATE_UNKNOWN			11
#define STATE_NOTMINE			10
#define STATE_MINE               5
#define STATE_NUMBER_8           7
#define STATE_NUMBER_7           8
#define STATE_NUMBER_6           9
#define STATE_NUMBER_5           10
#define STATE_NUMBER_4           11
#define STATE_NUMBER_3           12
#define STATE_NUMBER_2           13
#define STATE_NUMBER_1           14
#define STATE_EMPTY              15
#define STATE_OPENED             16
#define EMPTY_AREA_START         1000

#define MINE_WIDTH               16
#define MINE_HEIGHT              16

#define BUTTON_DOWN              0
#define BUTTON_VICTORY           1
#define BUTTON_DEAD              2
#define BUTTON_CLICK             3
#define BUTTON_NORMAL            4

#define ADVANCED_MINE_NUM               99 

/////////////////////////////////////////////////////////////////////////////
// CPushMineApp:
// See PushMine.cpp for the implementation of this class
//

class CPushMineApp : public CWinApp
{
public:	
	CMineArea* pWnd;
	UINT uCustomWidth;
	UINT uCustomHeight;
	UINT uCustomMineNum;
	UINT uGameLevel;
	
	BOOL bColor;
	BOOL bSound;
	BOOL bMarked;
	
	UINT uPrimaryRecord;
	UINT uSecondaryRecord;
	UINT uAdvancedRecord;
	
	CString sPrimaryRecordHolder;
	CString sSecondaryRecordHolder;
	CString sAdvancedRecordHolder;
	
	CHAR sResource[STR_NUM][STR_BUF_MAX]; 
	
	UINT uSecends;
	int  uRemainMines;
	UINT uFrameWidth;
	UINT uFrameHeight;
public:
	CPushMineApp();
    BOOL LoadGameInfo();
	BOOL SaveGameInfo();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPushMineApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CPushMineApp)
		// 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()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PUSHMINE_H__9E261BAF_0C1D_4410_AA78_E05088829B23__INCLUDED_)

⌨️ 快捷键说明

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