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

📄 7_1view.h

📁 用vc++6.0开发游戏
💻 H
字号:
// 7_1View.h : interface of the CMy7_1View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_7_1VIEW_H__7641FC0D_DA12_11D5_B2C4_5254AB2BD63E__INCLUDED_)
#define AFX_7_1VIEW_H__7641FC0D_DA12_11D5_B2C4_5254AB2BD63E__INCLUDED_

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


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

// Attributes
public:
	CMy7_1Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy7_1View)
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	//重新开始
	void OnNet2();
	void Netputdown();
	//play:2表示服务器,3表示客户端,否则为1
	short play;


	CPoint vspoint;//保存vscomputer时白棋位置
	int vscomputer;
	void searchcandown1(int i,int j,int n);
	void searchcandown2(int i,int j,int n);
	void searchcandown3(int i,int j,int n);
	void searchcandown4(int i,int j,int n);
	CPoint maxnum(int a,int b,int c,int d);
	void bestputdown(int i,int j);
	void computerdown();
	void putdown(CPoint point);
	void over(CPoint point);
	HCURSOR hcursorwhite;
	HCURSOR hcursorblack;
	int wzq[19][19];
	bool colorwhite;
	CBitmap m_bmblack;
	CBitmap m_bmwhite;
	CPoint bpointcan4,//这个位置空,它旁边有四个黑棋
		wpointcan4,//这个位置空,它旁边有四个白棋
		bpointcan3,//这个位置空,它的旁边有三个黑棋
		wpointcan3,//这个位置空,它的旁边有三个白棋
		bpointcan2,//这个位置空,它的旁边有两个黑棋
		wpointcan2,//这个位置空,它的旁边有两个白棋
		bpointcan1;//不是以上情况,这个位置空		
	virtual ~CMy7_1View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMy7_1View)
	afx_msg void OnStart();
	afx_msg void OnCpmputer();
	afx_msg void OnPlayer();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnNet();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 7_1View.cpp
inline CMy7_1Doc* CMy7_1View::GetDocument()
   { return (CMy7_1Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_7_1VIEW_H__7641FC0D_DA12_11D5_B2C4_5254AB2BD63E__INCLUDED_)

⌨️ 快捷键说明

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