aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/viewangleanim.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/client/viewangleanim.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/client/viewangleanim.h')
-rw-r--r--sp/src/game/client/viewangleanim.h148
1 files changed, 74 insertions, 74 deletions
diff --git a/sp/src/game/client/viewangleanim.h b/sp/src/game/client/viewangleanim.h
index c616c73f..c5d08bc1 100644
--- a/sp/src/game/client/viewangleanim.h
+++ b/sp/src/game/client/viewangleanim.h
@@ -1,75 +1,75 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "utlvector.h"
-
-#define VIEWANIM_RELATIVE (1<<0) // angles in keyframe are relative, add anim to current angles
-#define VIEWANIM_IGNORE_X (1<<1) // ignore the x component of this animation
-#define VIEWANIM_IGNORE_Y (1<<2) // ditto for y
-#define VIEWANIM_IGNORE_Z (1<<3) // ditto for z
-
-#define QAngleToVector(a,v) { v[0] = a[0]; v[1] = a[1]; v[2] = a[2]; }
-
-class CViewAngleKeyFrame
-{
-public:
- CViewAngleKeyFrame( QAngle vecAngles, float flTime, int iFlags )
- {
- m_vecAngles = vecAngles;
- m_flTime = flTime;
- m_iFlags = iFlags;
- }
-
- // the target angles for this keyframe in the view angle animation
- QAngle m_vecAngles;
-
- // time position of this keyframe
- float m_flTime;
-
- int m_iFlags;
-};
-
-
-typedef void (*ViewAnimCompleteCallback)( void );
-
-class CViewAngleAnimation : public C_BaseEntity
-{
-public:
- CViewAngleAnimation();
- ~CViewAngleAnimation();
-
- virtual void Spawn();
-
- void DeleteKeyFrames();
-
-
- void LoadViewAnimFile( const char *pKeyFrameFileName );
- void SaveAsAnimFile( const char *pKeyFrameFileName );
-
- void AddKeyFrame( CViewAngleKeyFrame *pKeyFrame );
- bool IsFinished( void );
- void RunAnimation( QAngle angles );
- void ClientThink();
-
- void SetAnimCompleteCallback( ViewAnimCompleteCallback pFunc )
- {
- m_pAnimCompleteCallback = pFunc;
- }
-
-private:
- void SetAngles( QAngle vecCalculatedAngles );
-
- float m_flAnimStartTime; // time this animation started
- bool m_bFinished;
-
- CUtlVector<CViewAngleKeyFrame *> m_KeyFrames;
-
- QAngle m_vecBaseAngles;
-
- int m_iFlags;
-
- ViewAnimCompleteCallback m_pAnimCompleteCallback;
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "utlvector.h"
+
+#define VIEWANIM_RELATIVE (1<<0) // angles in keyframe are relative, add anim to current angles
+#define VIEWANIM_IGNORE_X (1<<1) // ignore the x component of this animation
+#define VIEWANIM_IGNORE_Y (1<<2) // ditto for y
+#define VIEWANIM_IGNORE_Z (1<<3) // ditto for z
+
+#define QAngleToVector(a,v) { v[0] = a[0]; v[1] = a[1]; v[2] = a[2]; }
+
+class CViewAngleKeyFrame
+{
+public:
+ CViewAngleKeyFrame( QAngle vecAngles, float flTime, int iFlags )
+ {
+ m_vecAngles = vecAngles;
+ m_flTime = flTime;
+ m_iFlags = iFlags;
+ }
+
+ // the target angles for this keyframe in the view angle animation
+ QAngle m_vecAngles;
+
+ // time position of this keyframe
+ float m_flTime;
+
+ int m_iFlags;
+};
+
+
+typedef void (*ViewAnimCompleteCallback)( void );
+
+class CViewAngleAnimation : public C_BaseEntity
+{
+public:
+ CViewAngleAnimation();
+ ~CViewAngleAnimation();
+
+ virtual void Spawn();
+
+ void DeleteKeyFrames();
+
+
+ void LoadViewAnimFile( const char *pKeyFrameFileName );
+ void SaveAsAnimFile( const char *pKeyFrameFileName );
+
+ void AddKeyFrame( CViewAngleKeyFrame *pKeyFrame );
+ bool IsFinished( void );
+ void RunAnimation( QAngle angles );
+ void ClientThink();
+
+ void SetAnimCompleteCallback( ViewAnimCompleteCallback pFunc )
+ {
+ m_pAnimCompleteCallback = pFunc;
+ }
+
+private:
+ void SetAngles( QAngle vecCalculatedAngles );
+
+ float m_flAnimStartTime; // time this animation started
+ bool m_bFinished;
+
+ CUtlVector<CViewAngleKeyFrame *> m_KeyFrames;
+
+ QAngle m_vecBaseAngles;
+
+ int m_iFlags;
+
+ ViewAnimCompleteCallback m_pAnimCompleteCallback;
}; \ No newline at end of file