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

📄 explode.h

📁 是3D游戏一书中所讲的游戏引擎fly3D 包括fly3D引擎的源码及应用此引擎开发出来的游戏实例 有fly3D引擎的教程,易于step by step跟学
💻 H
字号:
// the explode class implements a explosion definition
class explode : public bsp_object
{
	public:

		exp_sphere *e;	// the explode sphere
		sprite_light *s;		// the sprite
		light *l;		// the light
		dyn_sound *snd;		// the sound
		particle_system *ps;	// the particle system
		float damage,damageradius;	// the damage value and radius

	int get_custom_param_desc(int i,param_desc *pd);
	virtual void do_explode(vector& pos,vector& z,int fromplayer);

	explode() 
	{ type=TYPE_EXPLODE; };
};

class explode_desc : public class_desc
{
public:
	void *create() { return new explode; };
	char *get_name() { return "explode"; };
	int get_type() { return TYPE_EXPLODE; };
};

⌨️ 快捷键说明

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