summaryrefslogtreecommitdiff
path: root/game/server/tf/func_powerupvolume.h
blob: 374ec3c97e0738ae9f94fb1e6bbf3afdcb349742 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: CTF Powerup Volume.
//
//=============================================================================//
#ifndef FUNC_POWERUP_VOLUME_H
#define FUNC_POWERUP_VOLUME_H

#ifdef _WIN32
#pragma once
#endif

#include "triggers.h"

DECLARE_AUTO_LIST( IFuncPowerupVolumeAutoList );

//=============================================================================
//
// CTF Powerup Volume class.
//
class CPowerupVolume : public CTriggerMultiple, public IFuncPowerupVolumeAutoList
{
public:
	DECLARE_CLASS( CPowerupVolume, CTriggerMultiple );

	CPowerupVolume();

	void	Spawn( void );
	void	Precache( void );
	void	Touch( CBaseEntity *pOther );

 	bool	IsDisabled( void );
 	void	SetDisabled( bool bDisabled );
	int		GetNumTimesUsed( void ) { return m_nNumberOfTimesUsed; }
	void	SetNumTimesUsed( int NumberOfTimesUsed ) { m_nNumberOfTimesUsed = NumberOfTimesUsed; }

	int		m_nNumberOfTimesUsed;

private:
	bool	m_bDisabled;
};
#endif // FUNC_POWERUP_VOLUME_H