Team Fortress 2 Source Code as on 22/4/2020
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.

47 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //
  4. //=============================================================================//
  5. #ifndef TF_ITEM_H
  6. #define TF_ITEM_H
  7. #ifdef _WIN32
  8. #pragma once
  9. #endif
  10. #ifdef CLIENT_DLL
  11. #include "c_props.h"
  12. #else
  13. #include "props.h"
  14. #endif
  15. #ifdef CLIENT_DLL
  16. #define CTFPlayer C_TFPlayer
  17. #define CTFItem C_TFItem
  18. #endif
  19. class CTFPlayer;
  20. //=============================================================================
  21. //
  22. // TF Item
  23. //
  24. class CTFItem : public CDynamicProp
  25. {
  26. public:
  27. DECLARE_CLASS( CTFItem,CDynamicProp )
  28. DECLARE_NETWORKCLASS();
  29. // Unique identifier.
  30. virtual unsigned int GetItemID() const;
  31. // Pick up and drop.
  32. virtual void PickUp( CTFPlayer *pPlayer, bool bInvisible );
  33. virtual void Drop( CTFPlayer *pPlayer, bool bVisible, bool bThrown = false, bool bMessage = true );
  34. #ifdef CLIENT_DLL
  35. virtual bool ShouldDraw();
  36. virtual ShadowType_t ShadowCastType();
  37. virtual bool ShouldHideGlowEffect( void ) { return false; }
  38. #endif
  39. };
  40. #endif // TF_ITEM_H