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

📄 renzhe2doc.h

📁 贪吃蛇游戏源代码
💻 H
字号:
// renzhe2Doc.h : interface of the CRenzhe2Doc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RENZHE2DOC_H__46FC341C_2F1F_4F07_818F_D8360D3A25AE__INCLUDED_)
#define AFX_RENZHE2DOC_H__46FC341C_2F1F_4F07_818F_D8360D3A25AE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define doushu 200
struct DOU
{
	CRect dou_rect;
	bool dou_cunzai;
};
#define count 100
class CRenzhe2Doc : public CDocument
{
protected: // create from serialization only
	CRenzhe2Doc();
	DECLARE_DYNCREATE(CRenzhe2Doc)

// Attributes
public:
	CPoint L_point,L_point2,R_point,R_point2;
	int m_long,m_doushu;     //判断正在吃第几个豆
	int m_score;
	int m_gamelevel;
	CRect rect[count],m_rect;     //注意m_rect储存的是蛇头上次的位置;
	bool l_yundong,r_yundong,u_yundong,d_yundong,m_heng,zhongzhi;
	DOU douzi[doushu];
	bool dou_weizhi,game_zhongzhi,m_dialog,m_register;
	double time;
	int m_totlescore;
	//CSize lsize,rsize,usize,dsize;



// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRenzhe2Doc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CRenzhe2Doc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRenzhe2Doc)
		// 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_RENZHE2DOC_H__46FC341C_2F1F_4F07_818F_D8360D3A25AE__INCLUDED_)

⌨️ 快捷键说明

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