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.

63 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef WEAPON_TFC_SPANNER_H
  7. #define WEAPON_TFC_SPANNER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "weapon_tfcbase.h"
  12. #include "weapon_tfc_crowbar.h"
  13. #if defined( CLIENT_DLL )
  14. #define CTFCSpanner C_TFCSpanner
  15. #endif
  16. // ----------------------------------------------------------------------------- //
  17. // CTFCSpanner class definition.
  18. // ----------------------------------------------------------------------------- //
  19. class CTFCSpanner : public CTFCCrowbar
  20. {
  21. public:
  22. DECLARE_CLASS( CTFCSpanner, CTFCCrowbar );
  23. DECLARE_NETWORKCLASS();
  24. DECLARE_PREDICTABLE();
  25. #ifndef CLIENT_DLL
  26. DECLARE_DATADESC();
  27. #endif
  28. public:
  29. CTFCSpanner();
  30. virtual void Precache();
  31. virtual TFCWeaponID GetWeaponID( void ) const;
  32. // CTFCCrowbar overrides.
  33. public:
  34. #ifdef GAME_DLL
  35. virtual void AxeHit( CBaseEntity *pHit, bool bFirstSwing, trace_t &tr, float *flDamage, bool *bDoEffects );
  36. #endif
  37. private:
  38. CTFCSpanner( const CTFCSpanner & ) {}
  39. };
  40. #endif // WEAPON_TFC_SPANNER_H