score.h

来自「用MFC编写的一个潜艇大战的游戏」· C头文件 代码 · 共 32 行

H
32
字号
// Score.h: interface for the CScore class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCORE_H__9939D477_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_)
#define AFX_SCORE_H__9939D477_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_

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

#include "MyObject.h"

class CScore : public CMyObject  
{
public:
	bool Draw(CDC* pDC, bool bPause);
	CScore(CPoint ptPos,int nMuti, int nScore, DWORD nColor);
	CRect GetRect()	{ return NULL; }
	static int GetTotalScore()	{ return m_nTotalScore; }
	virtual ~CScore();

private:
	COLORREF m_nColor;
	int m_nProcess;
	int m_nScore;
	int m_nMuti;
	static int m_nTotalScore;
};

#endif // !defined(AFX_SCORE_H__9939D477_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_)

⌨️ 快捷键说明

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