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

📄 othelloview.h

📁 搜索算法部分使用minmax递归
💻 H
字号:
// OthelloView.h : interface of the COthelloView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_OTHELLOVIEW_H__7EBE32DC_2C48_4A95_93C3_661BCC69D32A__INCLUDED_)
#define AFX_OTHELLOVIEW_H__7EBE32DC_2C48_4A95_93C3_661BCC69D32A__INCLUDED_


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <mmsystem.h>
#include "WinDlg.h"

class COthelloView : public CView
{
protected: // create from serialization only
	COthelloView();
	DECLARE_DYNCREATE(COthelloView)

// Attributes
public:
	COthelloDoc* GetDocument();
	enum {SPACE,BLACK,WHITE,ENABLE,HUMAN =80,AI,H2H,H2A,A2H,A2A};

// Operations
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COthelloView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// Implementation
public:
	MCI_OPEN_PARMS mciOpen;
	CWinDlg* m_Dlg;
	virtual ~COthelloView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(COthelloView)
	afx_msg void OnGameNew();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnGameFirst();
	afx_msg void OnGameSecond();
	afx_msg void OnGameDouble();
	afx_msg void OnUpdateGameFirst(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGameSecond(CCmdUI* pCmdUI);
	afx_msg void OnFunctionHint();
	afx_msg void OnUpdateFunctionHint(CCmdUI* pCmdUI);
	afx_msg void OnFunctionRedo();
	afx_msg void OnFunctionUndo();
	afx_msg void OnFunctionDepth9();
	afx_msg void OnUpdateFunctionDepth9(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth8();
	afx_msg void OnUpdateFunctionDepth8(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth7();
	afx_msg void OnUpdateFunctionDepth7(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth6();
	afx_msg void OnUpdateFunctionDepth6(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth5();
	afx_msg void OnUpdateFunctionDepth5(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth4();
	afx_msg void OnUpdateFunctionDepth4(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth3();
	afx_msg void OnUpdateFunctionDepth3(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth2();
	afx_msg void OnUpdateFunctionDepth2(CCmdUI* pCmdUI);
	afx_msg void OnFunctionDepth1();
	afx_msg void OnUpdateFunctionDepth1(CCmdUI* pCmdUI);
	afx_msg void OnFunctionStable();
	afx_msg void OnUpdateFunctionStable(CCmdUI* pCmdUI);
	afx_msg void OnFunctionAction();
	afx_msg void OnUpdateFunctionAction(CCmdUI* pCmdUI);
	afx_msg void OnHelpHelp();
	afx_msg void OnFunctionMusic();
	afx_msg void OnUpdateFunctionMusic(CCmdUI* pCmdUI);
	afx_msg void OnGameDisplay();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	bool m_Music;
	int timer;
	bool init;
	int m_Change;
	int m_Origin;


};

#ifndef _DEBUG  // debug version in OthelloView.cpp
inline COthelloDoc* COthelloView::GetDocument()
   { return (COthelloDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_OTHELLOVIEW_H__7EBE32DC_2C48_4A95_93C3_661BCC69D32A__INCLUDED_)

⌨️ 快捷键说明

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