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.
48 lines
1.0 KiB
48 lines
1.0 KiB
//========= 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
|