bonus.h
来自「人最近写的一个飞行类的游戏,主要目的是为了锻炼一下自己,提高编程水平,由于本人C」· C头文件 代码 · 共 37 行
H
37 行
// Bonus.h: interface for the CBonus class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BONUS_H__E30C0C48_306D_486C_8C4A_AA02D868C7AC__INCLUDED_)
#define AFX_BONUS_H__E30C0C48_306D_486C_8C4A_AA02D868C7AC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BaseObj.h"
class CBonus : public CBaseObj
{
public:
CBonus(CDirectWnd *win,
CObList *ObList,
int px,
int py,
int xspd,
int yspd,
int btype);
virtual ~CBonus();
void LoadPic();
void Action();
int getBonusType() { return bonusType; }
public:
LPDIRECTDRAWSURFACE BonusPic;
private:
int bonusType; //type 0:子弹一 1:子弹二 2: 炸弹 3: 无敌 4: 子弹全满
};
#endif // !defined(AFX_BONUS_H__E30C0C48_306D_486C_8C4A_AA02D868C7AC__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?