📄 bonus.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -