blockdoc.h

来自「俄罗斯方块游戏 MFC 源代码」· C头文件 代码 · 共 66 行

H
66
字号
// blockDoc.h : interface of the CBlockDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BLOCKDOC_H__7A04EEEB_5E2A_11D7_80DF_000021E3C617__INCLUDED_)
#define AFX_BLOCKDOC_H__7A04EEEB_5E2A_11D7_80DF_000021E3C617__INCLUDED_

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


class CBlockDoc : public CDocument
{
protected: // create from serialization only
	CBlockDoc();
	DECLARE_DYNCREATE(CBlockDoc)

// Attributes
public:
	int m_iMap[20][12];
	int m_iShape;
	int m_iState;
	POINT m_ptCurrentPos[4];
	COLORREF m_clrBack;
	COLORREF m_clrBlock;
	int m_iLevel;
	UINT m_uScore;
	int m_iNextShape;


// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CBlockDoc)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_BLOCKDOC_H__7A04EEEB_5E2A_11D7_80DF_000021E3C617__INCLUDED_)

⌨️ 快捷键说明

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