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

📄 mfcpodlg.h

📁 java game uploading now
💻 H
字号:
// MfcPoDlg.h : header file
//


#if !defined(AFX_MFCPODLG_H__D6D15001_6AF4_40B8_95DA_4FE6838B2003__INCLUDED_)
#define AFX_MFCPODLG_H__D6D15001_6AF4_40B8_95DA_4FE6838B2003__INCLUDED_

#include "OAI.h"	// Added by ClassView
#include "Setting.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMfcPoDlg dialog

class CMfcPoDlg : public CDialog
{ 
// Construction
public:
	void DrawV(CClientDC *pdc, int x, int y);
	void ClearUndo();
	void Undo();
	void AddUndo();
	void ShowResult(int x, int y, int score, int time, int nodes);
	void ShowScore();
	COAI ai;
	CDC m_bgdc;
	void CreateBoard();
	BOOL oneplayer;
	RECT mvstr[8][8];
	
	void DoMove(int xmv, int ymv, int color);
	void AIMove(int color);
	void DrawBW(int x,int y, int type);
	void DrawW(CClientDC *pdc, int x, int y);
	void DrawB(CClientDC *pdc, int x, int y);
	CString MoveDisplay(int color, int x, int y);

	BOOL CheckWin();
	BOOL CheckPos(CPoint point, int &x, int &y);

	CMfcPoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMfcPoDlg)
	enum { IDD = IDD_MFCPO_DIALOG };
	CListBox	m_hislist;
	CString	m_info;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMfcPoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMfcPoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnNewgame();
	afx_msg void OnUndoMove();
	afx_msg void OnFileExit();
	afx_msg void OnFileNewgame();
	afx_msg void OnFILESAVEGame();
	afx_msg void OnFileLoadgame();
	afx_msg void OnHelpSuggestmove();
	afx_msg void OnHelpUndomove();
	afx_msg void OnEvaluateBoardevaluation();
	afx_msg void OnHelpAbout();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnViewMirrorxy();
	afx_msg void OnViewMirrorx();
	afx_msg void OnViewMirrory();
	afx_msg void OnViewRotateclockwise();
	afx_msg void OnViewRotateanticlockwise();
	afx_msg void OnOptionsAisetting();
	afx_msg void OnDestroy();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//struct for undo move
typedef struct board_status{
	int board[8][8];	//current game board
	int turn;			//current turn
	int hislistno;		//current total number of history number
}bs;

typedef struct undo_state{
	bs *undo[60];	//array of board_status
	int	no_indos;	//number of undos;
}us;

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

#endif // !defined(AFX_MFCPODLG_H__D6D15001_6AF4_40B8_95DA_4FE6838B2003__INCLUDED_)

⌨️ 快捷键说明

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