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

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

#include "hintitemorderbase.h"

class C_BaseEntity;

//-----------------------------------------------------------------------------
// Purpose: 
//-----------------------------------------------------------------------------
class CHintItemObjectBase : public CHintItemOrderBase
{
	DECLARE_CLASS( CHintItemObjectBase, CHintItemOrderBase );
	
public:
	CHintItemObjectBase( vgui::Panel *parent, const char *panelName );
	
	virtual void		ParseItem( KeyValues *pKeyValues );
	// Is the object of type m_szObjectType
	virtual bool		IsObjectOfType( C_BaseEntity *object );
	virtual void		SetObjectType( const char *type );
	virtual char const	*GetObjectType( void );
	
private:
	enum
	{
		MAX_OBJECT_TYPE = 128,
	};
	
	char				m_szObjectType[ MAX_OBJECT_TYPE ];
};

#endif // HINTITEMOBJECTBASE_H