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