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.

38 lines
968 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef C_OBJ_SAPPER_H
  8. #define C_OBJ_SAPPER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "tf_obj_baseupgrade_shared.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose:
  15. //-----------------------------------------------------------------------------
  16. class C_ObjectSapper : public C_BaseObjectUpgrade
  17. {
  18. DECLARE_CLASS( C_ObjectSapper, C_BaseObjectUpgrade );
  19. public:
  20. DECLARE_CLIENTCLASS();
  21. C_ObjectSapper() {}
  22. virtual void ClientThink( void );
  23. virtual void OnDataChanged( DataUpdateType_t type );
  24. virtual bool IsHostileUpgrade( void ) { return true; }
  25. float GetReversesBuildingConstructionSpeed( void );
  26. private:
  27. C_ObjectSapper( const C_ObjectSapper & ); // not defined, not accessible
  28. };
  29. #endif // C_OBJ_SAPPER_H