playerbullet.h

来自「一个打飞机的小游戏的源代码」· C头文件 代码 · 共 38 行

H
38
字号
// PlayerBullet.h: interface for the CPlayerBullet class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PLAYERBULLET_H__BF4FDCCD_0E02_4837_8555_40498B9EC5A6__INCLUDED_)
#define AFX_PLAYERBULLET_H__BF4FDCCD_0E02_4837_8555_40498B9EC5A6__INCLUDED_

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

#include "Bullet.h"


class CPlayerBullet : public CBullet  
{
public:
	CPlayerBullet(CDirectWnd *win,
				  CObList *ObList,
		          int px,
				  int py,
				  int xspd,
				  int yspd,
				  int btype);
	virtual ~CPlayerBullet();
	void LoadPic();
	void Action();

public:
	static BulletAttr pPowTab[5];
	static int num;

private:
	int bulletType;
};

#endif // !defined(AFX_PLAYERBULLET_H__BF4FDCCD_0E02_4837_8555_40498B9EC5A6__INCLUDED_)

⌨️ 快捷键说明

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