⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basetank.h

📁 坦克游戏
💻 H
字号:
// BaseTank.h: interface for the CBaseTank class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BASETANK_H__3D714B22_C1EE_4BD9_9738_505D64BCE616__INCLUDED_)
#define AFX_BASETANK_H__3D714B22_C1EE_4BD9_9738_505D64BCE616__INCLUDED_


#include "ContainerObject.h"

class CBaseTank : public CContainerObject  
{
//////////////用来处理各自坦克
protected:
	int boolFlip;	//坦克图片的交迪.
	int iPos;		//坦克当前移动几格了.
public:
	int appearance;	//用来画坦克出世时的小星星
	

//////////////坦克可升级属性(吃东西)
public:
	int bulletNum;	//子弹最大数
	
	int power;		//坦克的攻击力.
	int speed;		//坦克的速度.
	int defend;		//坦克的防欲力
	int life;		//坦克剩的血
	int bulletSpeed;//坦克的攻击速度.

public:
	CBaseTank(CBaseTank *aTank);
	virtual ~CBaseTank();

	void Tankfire(int type);
	bool ChargeMove();
///////////////////////////////virtual
	void displayObject();
	bool ActiveObject();
};
#endif // !defined(AFX_BASETANK_H__3D714B22_C1EE_4BD9_9738_505D64BCE616__INCLUDED_)

⌨️ 快捷键说明

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