📄 weapon.h
字号:
// Weapon.h: interface for the CWeapon class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WEAPON_H__FBB6FC79_869C_4FC1_A45E_9D39B2E834A3__INCLUDED_)
#define AFX_WEAPON_H__FBB6FC79_869C_4FC1_A45E_9D39B2E834A3__INCLUDED_
#include "ContainerObject.h"
class CWeapon : public CContainerObject
{
public:
int speed; //子弹的速度
int power; //子弹的威力
int direction; //方向: 0.上,1.下,2.左,3.右
public:
public:
CWeapon(CWeapon *weapon);
virtual ~CWeapon();
int ChargeAttack();
///////////////////////////////virtual
void displayObject();
bool ActiveObject();
};
#endif // !defined(AFX_WEAPON_H__FBB6FC79_869C_4FC1_A45E_9D39B2E834A3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -