summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_obj_barbed_wire.h
blob: b242640c8cf5e866967216375c5b61c46372566c (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
42
43
44
45
46
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

#ifndef C_OBJ_BARBED_WIRE_H
#define C_OBJ_BARBED_WIRE_H
#ifdef _WIN32
#pragma once
#endif


#include "c_baseobject.h"
#include "c_rope.h"


class C_ObjectBarbedWire : public C_BaseObject
{
public:
	DECLARE_CLASS( C_ObjectBarbedWire, C_BaseObject );
	DECLARE_CLIENTCLASS();

	C_ObjectBarbedWire();
	~C_ObjectBarbedWire();

	virtual void OnDataChanged( DataUpdateType_t type );

	virtual void Spawn();
	virtual void ClientThink();


private:
	C_ObjectBarbedWire( C_ObjectBarbedWire& ) {}

	CHandle<C_ObjectBarbedWire> m_hConnectedTo;
	CHandle<C_ObjectBarbedWire> m_hLastConnectedTo;
	CHandle<C_RopeKeyframe> m_hRope;

	// Used to determine when to recalculate the hang distance.
	Vector m_vLastOrigin;
	Vector m_vLastConnectedOrigin;
};


#endif // C_OBJ_BARBED_WIRE_H