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.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef C_TF_BUFF_BANNER_H
  7. #define C_TF_BUFF_BANNER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tf_weapon_buff_item.h"
  12. #define CTFBuffBanner C_TFBuffBanner
  13. class C_TFBuffItem;
  14. //-----------------------------------------------------------------------------
  15. // Purpose: These need some base class derived from base animating that handles stuff like clientthink.
  16. //-----------------------------------------------------------------------------
  17. class C_TFBuffBanner : public CBaseAnimating
  18. {
  19. DECLARE_CLASS( C_TFBuffBanner, CBaseAnimating );
  20. public:
  21. DECLARE_NETWORKCLASS();
  22. C_TFBuffBanner();
  23. ~C_TFBuffBanner() {}
  24. void SetBuffItem( C_TFBuffItem* newBuffItem ) { m_hBuffItem = newBuffItem; }
  25. virtual void NotifyBoneAttached( C_BaseAnimating* attachTarget );
  26. virtual void ClientThink( void );
  27. void SetBuffType( int iBuffType ) { m_iBuffType = iBuffType; }
  28. private:
  29. float m_flDetachTime;
  30. int m_iBuffType;
  31. CHandle<C_TFBuffItem> m_hBuffItem;
  32. };
  33. #endif // C_TF_BUFF_BANNER_H