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.

55 lines
985 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTF ChangeClass Zone.
  4. //
  5. //=============================================================================//
  6. #ifndef FUNC_CHANGECLASS_ZONE_H
  7. #define FUNC_CHANGECLASS_ZONE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "triggers.h"
  12. //=============================================================================
  13. //
  14. // CTF Regenerate Zone class.
  15. //
  16. class CChangeClassZone : public CBaseTrigger
  17. {
  18. public:
  19. DECLARE_CLASS( CChangeClassZone, CBaseTrigger );
  20. CChangeClassZone();
  21. void Spawn( void );
  22. void Precache( void );
  23. void Touch( CBaseEntity *pOther );
  24. void EndTouch( CBaseEntity *pOther );
  25. bool IsDisabled( void );
  26. void SetDisabled( bool bDisabled );
  27. // Input handlers
  28. void InputEnable( inputdata_t &inputdata );
  29. void InputDisable( inputdata_t &inputdata );
  30. void InputToggle( inputdata_t &inputdata );
  31. private:
  32. bool m_bDisabled;
  33. };
  34. #endif // FUNC_CHANGECLASS_ZONE_H