summaryrefslogtreecommitdiff
path: root/game/shared/tf/tf_item.h
blob: 27005995718d43adb6972a124c7ef093b2ada41c (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//
//=============================================================================//
#ifndef TF_ITEM_H
#define TF_ITEM_H
#ifdef _WIN32
#pragma once
#endif

#ifdef CLIENT_DLL
#include "c_props.h"
#else
#include "props.h"
#endif

#ifdef CLIENT_DLL
#define CTFPlayer C_TFPlayer
#define CTFItem C_TFItem
#endif

class CTFPlayer;

//=============================================================================
//
// TF Item
//
class CTFItem : public CDynamicProp
{
public:
	DECLARE_CLASS( CTFItem,CDynamicProp  )
	DECLARE_NETWORKCLASS();

	// Unique identifier.
	virtual unsigned int GetItemID() const;
	
	// Pick up and drop.
	virtual void PickUp( CTFPlayer *pPlayer, bool bInvisible );
	virtual void Drop( CTFPlayer *pPlayer, bool bVisible, bool bThrown = false, bool bMessage = true );

#ifdef CLIENT_DLL
	virtual bool ShouldDraw();
	virtual ShadowType_t ShadowCastType();
	virtual bool ShouldHideGlowEffect( void ) { return false; }
#endif
};

#endif // TF_ITEM_H