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.

51 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef PHYSICSCLONEAREA_H
  8. #define PHYSICSCLONEAREA_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "baseentity.h"
  13. class CProp_Portal;
  14. class CPortalSimulator;
  15. class CPhysicsCloneArea : public CBaseEntity
  16. {
  17. public:
  18. DECLARE_CLASS( CPhysicsCloneArea, CBaseEntity );
  19. static const Vector vLocalMins;
  20. static const Vector vLocalMaxs;
  21. virtual void StartTouch( CBaseEntity *pOther );
  22. virtual void Touch( CBaseEntity *pOther );
  23. virtual void EndTouch( CBaseEntity *pOther );
  24. virtual void Spawn( void );
  25. virtual void Activate( void );
  26. virtual int ObjectCaps( void );
  27. void UpdatePosition( void );
  28. void CloneTouchingEntities( void );
  29. void CloneNearbyEntities( void );
  30. static CPhysicsCloneArea *CreatePhysicsCloneArea( CProp_Portal *pFollowPortal );
  31. private:
  32. CProp_Portal *m_pAttachedPortal;
  33. CPortalSimulator *m_pAttachedSimulator;
  34. bool m_bActive;
  35. };
  36. #endif //#ifndef PHYSICSCLONEAREA_H