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.

41 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Base class for object upgrading objects
  4. //
  5. //=============================================================================//
  6. #ifndef TF_OBJ_BASEUPGRADE_H
  7. #define TF_OBJ_BASEUPGRADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "baseobject_shared.h"
  12. #include "takedamageinfo.h"
  13. #if defined( CLIENT_DLL )
  14. #define CBaseObjectUpgrade C_BaseObjectUpgrade
  15. #endif
  16. // ------------------------------------------------------------------------ //
  17. // Base class for object upgrading objects
  18. // ------------------------------------------------------------------------ //
  19. class CBaseObjectUpgrade : public CBaseObject
  20. {
  21. DECLARE_CLASS( CBaseObjectUpgrade, CBaseObject );
  22. public:
  23. DECLARE_NETWORKCLASS();
  24. CBaseObjectUpgrade();
  25. virtual void Spawn( void );
  26. virtual bool IsAnUpgrade( void ) { return true; }
  27. virtual int OnTakeDamage( const CTakeDamageInfo &info );
  28. private:
  29. CBaseObjectUpgrade( const CBaseObjectUpgrade & ); // not defined, not accessible
  30. };
  31. #endif // TF_OBJ_BASEUPGRADE_H