explode.h

来自「是3D游戏一书中所讲的游戏引擎fly3D 包括fly3D引擎的源码及应用此引擎」· C头文件 代码 · 共 28 行

H
28
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?