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.

54 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTF Powerup Volume.
  4. //
  5. //=============================================================================//
  6. #ifndef FUNC_POWERUP_VOLUME_H
  7. #define FUNC_POWERUP_VOLUME_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "triggers.h"
  12. DECLARE_AUTO_LIST( IFuncPowerupVolumeAutoList );
  13. //=============================================================================
  14. //
  15. // CTF Powerup Volume class.
  16. //
  17. class CPowerupVolume : public CTriggerMultiple, public IFuncPowerupVolumeAutoList
  18. {
  19. public:
  20. DECLARE_CLASS( CPowerupVolume, CTriggerMultiple );
  21. CPowerupVolume();
  22. void Spawn( void );
  23. void Precache( void );
  24. void Touch( CBaseEntity *pOther );
  25. bool IsDisabled( void );
  26. void SetDisabled( bool bDisabled );
  27. int GetNumTimesUsed( void ) { return m_nNumberOfTimesUsed; }
  28. void SetNumTimesUsed( int NumberOfTimesUsed ) { m_nNumberOfTimesUsed = NumberOfTimesUsed; }
  29. int m_nNumberOfTimesUsed;
  30. private:
  31. bool m_bDisabled;
  32. };
  33. #endif // FUNC_POWERUP_VOLUME_H