blob: d015ab9187a85557b4c21afc39ad252495904820 (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Upgrade that heals the object over time
//
//=============================================================================//
#ifndef TF_OBJ_SELFHEAL_H
#define TF_OBJ_SELFHEAL_H
#ifdef _WIN32
#pragma once
#endif
#include "tf_obj_baseupgrade_shared.h"
// ------------------------------------------------------------------------ //
// Self-Heal upgrade
// ------------------------------------------------------------------------ //
class CObjectSelfHeal : public CBaseObjectUpgrade
{
DECLARE_CLASS( CObjectSelfHeal, CBaseObjectUpgrade );
public:
DECLARE_DATADESC();
DECLARE_SERVERCLASS();
CObjectSelfHeal();
virtual void Spawn();
virtual void Precache();
virtual bool CanTakeEMPDamage( void ) { return true; }
virtual void FinishedBuilding( void );
// Repairing
virtual void SelfHealThink( void );
};
#endif // TF_OBJ_SELFHEAL_H
|