summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_obj_resourcepump.h
blob: 3cab0e90676dc3643659fbce6c9d010eb8574732 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef C_OBJ_RESOURCEPUMP_H
#define C_OBJ_RESOURCEPUMP_H
#ifdef _WIN32
#pragma once
#endif

#include "CommanderOverlay.h"
#include "c_baseobject.h"

class C_ResourceZone;

class C_ObjectResourcePump : public C_BaseObject
{
	DECLARE_CLASS( C_ObjectResourcePump, C_BaseObject );
public:
	DECLARE_CLIENTCLASS();
	DECLARE_ENTITY_PANEL();

	C_ObjectResourcePump();

	virtual void	SetDormant( bool bDormant );
	int				GetLevel( void ) { return m_iPumpLevel; }

	C_ResourceZone*	GetResourceZone() { return m_hResourceZone.Get(); }

private:
	CHealthBarPanel	*m_pResourceBar;
	int				m_iPumpLevel;
	CHandle<C_ResourceZone>	m_hResourceZone;

private:
	C_ObjectResourcePump( const C_ObjectResourcePump & ); // not defined, not accessible
};



#endif // C_OBJ_RESOURCEPUMP_H