Exploder.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // Exploder.h: interface for the Exploder class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "includeCGL.h"
- #if !defined(AFX_EXPLODER_H__670926AA_DE07_43C4_BEE7_B94E1B3301EC__INCLUDED_)
- #define AFX_EXPLODER_H__670926AA_DE07_43C4_BEE7_B94E1B3301EC__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- extern Particle_Emit* g_explode;
- extern P_Resistance * g_resistance;//碎片阻力
- class Exploder
- {
- public:
- Exploder(float particle_size = 5.f,int numParticles =100,float speed = 400.f);
- Explode(VECTOR3 pos);
- void Reset();//can explode again when doing this
- virtual ~Exploder();
- private:
- Particle_Emit * emit;
- bool exploded;
- float particle_size;
- float speed;
- int numParticles;
- };
- #endif // !defined(AFX_EXPLODER_H__670926AA_DE07_43C4_BEE7_B94E1B3301EC__INCLUDED_)