Team Fortress 2 Source Code as on 22/4/2020
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
950 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef RAGDOLLEXPLOSIONENUMERATOR_H
  8. #define RAGDOLLEXPLOSIONENUMERATOR_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "ispatialpartition.h"
  13. //Enumator class for ragdolls being affected by explosive forces
  14. class CRagdollExplosionEnumerator : public IPartitionEnumerator
  15. {
  16. DECLARE_CLASS_GAMEROOT( CRagdollExplosionEnumerator, IPartitionEnumerator );
  17. public:
  18. //Forced constructor
  19. CRagdollExplosionEnumerator( Vector origin, float radius, float magnitude );
  20. ~CRagdollExplosionEnumerator();
  21. //Actual work code
  22. virtual IterationRetval_t EnumElement( IHandleEntity *pHandleEntity );
  23. public:
  24. //Data members
  25. CUtlVector<C_BaseEntity*> m_Entities;
  26. Vector m_vecOrigin;
  27. float m_flMagnitude;
  28. float m_flRadius;
  29. };
  30. #endif // RAGDOLLEXPLOSIONENUMERATOR_H