summaryrefslogtreecommitdiff
path: root/game/client/hl1/hl1_c_player.h
blob: e94cbea41212a77ca9c314e3df311591e5d30f4a (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
47
48
49
50
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

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

#include "c_baseplayer.h"


#define CHL1_Player C_HL1_Player

class C_HL1_Player : public C_BasePlayer
{
public:
	DECLARE_CLASS( C_HL1_Player, C_BasePlayer );
	DECLARE_CLIENTCLASS();

	C_HL1_Player();

	bool IsPullingObject() { return m_bIsPullingObject; }

	CNetworkVar( bool, m_bHasLongJump );
	CNetworkVar( int, m_nFlashBattery );
	CNetworkVar( bool, m_bIsPullingObject );

	CNetworkVar( float, m_flStartCharge );
	CNetworkVar( float, m_flAmmoStartCharge );
	CNetworkVar( float, m_flPlayAftershock );
	CNetworkVar( float, m_flNextAmmoBurn );	// while charging, when to absorb another unit of player's ammo?

private:
	C_HL1_Player( const C_HL1_Player & );
	
};

inline C_HL1_Player *ToHL1Player( CBaseEntity *pEntity )
{
	if ( !pEntity || !pEntity->IsPlayer() )
		return NULL;

	return dynamic_cast<C_HL1_Player*>( pEntity );
}

#endif //C_HL1_PLAYER_H