summaryrefslogtreecommitdiff
path: root/game/client/tfc/c_tfc_player.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tfc/c_tfc_player.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tfc/c_tfc_player.h')
-rw-r--r--game/client/tfc/c_tfc_player.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/game/client/tfc/c_tfc_player.h b/game/client/tfc/c_tfc_player.h
new file mode 100644
index 0000000..41d5e58
--- /dev/null
+++ b/game/client/tfc/c_tfc_player.h
@@ -0,0 +1,69 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef C_TFC_PLAYER_H
+#define C_TFC_PLAYER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "tfc_playeranimstate.h"
+#include "c_baseplayer.h"
+#include "tfc_shareddefs.h"
+#include "baseparticleentity.h"
+#include "tfc_player_shared.h"
+
+
+class C_TFCPlayer : public C_BasePlayer
+{
+public:
+ DECLARE_CLASS( C_TFCPlayer, C_BasePlayer );
+ DECLARE_CLIENTCLASS();
+ DECLARE_PREDICTABLE();
+ DECLARE_INTERPOLATION();
+
+ C_TFCPlayer();
+ ~C_TFCPlayer();
+
+ static C_TFCPlayer* GetLocalTFCPlayer();
+
+ virtual const QAngle& GetRenderAngles();
+ virtual void UpdateClientSideAnimation();
+ virtual void PostDataUpdate( DataUpdateType_t updateType );
+ virtual void ProcessMuzzleFlashEvent();
+
+
+public:
+
+ CTFCPlayerShared m_Shared;
+
+
+// Called by shared code.
+public:
+
+ void DoAnimationEvent( PlayerAnimEvent_t event, int nData );
+
+ ITFCPlayerAnimState *m_PlayerAnimState;
+
+
+ QAngle m_angEyeAngles;
+ CInterpolatedVar< QAngle > m_iv_angEyeAngles;
+
+
+private:
+ C_TFCPlayer( const C_TFCPlayer & );
+};
+
+
+inline C_TFCPlayer* ToTFCPlayer( CBasePlayer *pPlayer )
+{
+ Assert( dynamic_cast< C_TFCPlayer* >( pPlayer ) != NULL );
+ return static_cast< C_TFCPlayer* >( pPlayer );
+}
+
+
+#endif // C_TFC_PLAYER_H