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.

62 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTF Regenerate Zone.
  4. //
  5. //=============================================================================//
  6. #ifndef FUNC_REGENERATE_ZONE_H
  7. #define FUNC_REGENERATE_ZONE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "triggers.h"
  12. #include "props.h"
  13. //=============================================================================
  14. //
  15. // CTF Regenerate Zone class.
  16. //
  17. class CRegenerateZone : public CBaseTrigger
  18. {
  19. public:
  20. DECLARE_CLASS( CRegenerateZone, CBaseTrigger );
  21. CRegenerateZone();
  22. void Spawn( void );
  23. void Precache( void );
  24. void Activate( void );
  25. void Touch( CBaseEntity *pOther );
  26. virtual void EndTouch( CBaseEntity *pOther );
  27. bool IsDisabled( void );
  28. void SetDisabled( bool bDisabled );
  29. void Regenerate( CTFPlayer *pPlayer );
  30. // Input handlers
  31. void InputEnable( inputdata_t &inputdata );
  32. void InputDisable( inputdata_t &inputdata );
  33. void InputToggle( inputdata_t &inputdata );
  34. private:
  35. bool m_bDisabled;
  36. CHandle<CDynamicProp> m_hAssociatedModel;
  37. string_t m_iszAssociatedModel;
  38. DECLARE_DATADESC();
  39. };
  40. #endif // FUNC_REGENERATE_ZONE_H