summaryrefslogtreecommitdiff
path: root/game/client/tfc/c_tfc_player.h
diff options
context:
space:
mode:
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