Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
965 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef PARTICLES_ATTRACTOR_H
  7. #define PARTICLES_ATTRACTOR_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "particles_simple.h"
  12. class CParticleAttractor : public CSimpleEmitter
  13. {
  14. public:
  15. explicit CParticleAttractor( const char *pDebugName ) : CSimpleEmitter( pDebugName ) {}
  16. //Create
  17. static CParticleAttractor *Create( const Vector &center, const char *pDebugName = "attractor" );
  18. void UpdateVelocity( SimpleParticle *pParticle, float timeDelta );
  19. float UpdateScale( const SimpleParticle *pParticle );
  20. float UpdateAlpha( const SimpleParticle *pParticle );
  21. void SetAttractorOrigin( const Vector &origin );
  22. private:
  23. CParticleAttractor( const CParticleAttractor & ); // not defined, not accessible
  24. Vector m_vecAttractorOrigin;
  25. };
  26. #endif // PARTICLES_ATTRACTOR_H