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

📄 shegame.h

📁 一个用vc编写的俄罗斯方块和贪吃蛇游戏的源代码
💻 H
字号:
// SheGame.h: interface for the CSheGame class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHEGAME_H__5C0D314C_4A62_4CC5_8E29_D7A35FD3596F__INCLUDED_)
#define AFX_SHEGAME_H__5C0D314C_4A62_4CC5_8E29_D7A35FD3596F__INCLUDED_

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

#include "gamswnd.h"

class CSheGame : public CGamsWnd
{
public:
	DECLARE_DYNCREATE(CSheGame);
	void StartGame();
	void StopGame();
	void CreateNewPoint(int x = 0, int y = 0);
	void MovePoint();
	void ClearPoint();
public:
	UINT m_nTimer;
	int m_nX, m_nY;
	int m_nPointNum;
	UINT m_nMoveType;
	CPtrList m_pPointList;
	BOOL m_bCreate;
public:
	CSheGame();
	virtual ~CSheGame();
protected:
	//{{AFX_MSG(CSheGame)
	afx_msg void OnTimer( UINT nIDEvent );
	afx_msg void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
	afx_msg void OnPaint();
		// 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()

};

#endif // !defined(AFX_SHEGAME_H__5C0D314C_4A62_4CC5_8E29_D7A35FD3596F__INCLUDED_)

⌨️ 快捷键说明

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