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

📄 bao.h

📁 射击小游戏
💻 H
字号:
#ifndef _BAO_H
#define _BAO_H
#include "BaseObject.h"
//*******************************************************
//宝箱类定义
//*******************************************************
class Bao :public BaseObject
{		
	protected:
		friend class BaoSystem;
	public:
		int m_iType;//宝箱的类型
		Bao(int x,int y,int vx_value,int vy_value,int value);//构造函数
		static enum BAO_TYPE { BAO_BLOOD=1,BAO_WEAPON=2 };
		void Update();
};
class Bao_Blood :public Bao
{
public:
	Bao_Blood(int x,int y,int vx_value,int vy_value,int t);//构造函数
	void Update();//更新函数
};
class Bao_Weapon:public Bao
{
public:
	Bao_Weapon(int x,int y,int vx_value,int vy_value,int t);//构造函数
	void Update();//更新函数
};
#endif

⌨️ 快捷键说明

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