Exploder.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:

射击游戏

开发平台:

Visual C++

  1. // Exploder.h: interface for the Exploder class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "includeCGL.h"
  5. #if !defined(AFX_EXPLODER_H__670926AA_DE07_43C4_BEE7_B94E1B3301EC__INCLUDED_)
  6. #define AFX_EXPLODER_H__670926AA_DE07_43C4_BEE7_B94E1B3301EC__INCLUDED_
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. extern Particle_Emit* g_explode;
  11. extern P_Resistance * g_resistance;//碎片阻力
  12. class Exploder
  13. {
  14. public:
  15. Exploder(float particle_size = 5.f,int numParticles =100,float speed = 400.f);
  16. Explode(VECTOR3 pos);
  17. void Reset();//can explode again when doing this
  18. virtual ~Exploder();
  19. private:
  20. Particle_Emit * emit;
  21. bool exploded;
  22. float particle_size;
  23. float speed;
  24. int numParticles;
  25. };
  26. #endif // !defined(AFX_EXPLODER_H__670926AA_DE07_43C4_BEE7_B94E1B3301EC__INCLUDED_)