📄 submarine.h
字号:
// Submarine.h: interface for the CSubmarine class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SUBMARINE_H__9939D475_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_)
#define AFX_SUBMARINE_H__9939D475_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MyObject.h"
#define SUBMARINE_WIDTH 63
#define SUBMARINE_HEIGHT 19
class CSubmarine : public CMyObject
{
public:
static void DeleteImage();
static BOOL LoadImage();
CRect GetRect() { return CRect(m_ptPos, CSize(SUBMARINE_WIDTH, SUBMARINE_HEIGHT)); }
int GetType() { return m_nType; }
bool Draw(CDC* pDC, bool bPause);
void SetFireFlag() { m_bFired = false; }
bool GetFireFlag() { return m_bFired; }
CSubmarine(bool bDir, int nVert, int nType, int nSpeed);
virtual ~CSubmarine();
private:
int m_nType;
bool m_bDirect;
int m_nSpeed;
int m_nFireWait;
bool m_bFired;
static CImageList m_Images;
};
#endif // !defined(AFX_SUBMARINE_H__9939D475_C570_11D4_A7CC_EA7F379C1C5F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -