diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/client/simple_keys.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/client/simple_keys.h')
| -rw-r--r-- | sp/src/game/client/simple_keys.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/sp/src/game/client/simple_keys.h b/sp/src/game/client/simple_keys.h index e37de1cc..1f3f0cd2 100644 --- a/sp/src/game/client/simple_keys.h +++ b/sp/src/game/client/simple_keys.h @@ -1,49 +1,49 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef SIMPLE_KEYS_H
-#define SIMPLE_KEYS_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-enum simplekeyinterp_t
-{
- KEY_LINEAR = 0,
- KEY_SPLINE,
- KEY_ACCELERATE,
- KEY_DECELERATE,
-};
-
-class CSimpleKeyInterp : public Vector
-{
-public:
- CSimpleKeyInterp( float t, simplekeyinterp_t interp, float x, float y = 0, float z = 0 ) : Vector( x, y, z )
- {
- m_interp = interp;
- m_keyTime = t;
- }
-
- float GetTime() const { return m_keyTime; }
-
- // out = t*start + (1-t) * end (may be splinear or linear)
- static void Interp( Vector &out, float t, const CSimpleKeyInterp &start, const CSimpleKeyInterp &end );
-
- float m_keyTime;
- simplekeyinterp_t m_interp;
-};
-
-
-class CSimpleKeyList
-{
-public:
- int Insert( const CSimpleKeyInterp &key );
- bool Interp( Vector &out, float t );
-
- CUtlVector<CSimpleKeyInterp> m_list;
-};
-
-#endif // SIMPLE_KEYS_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef SIMPLE_KEYS_H +#define SIMPLE_KEYS_H +#ifdef _WIN32 +#pragma once +#endif + +enum simplekeyinterp_t +{ + KEY_LINEAR = 0, + KEY_SPLINE, + KEY_ACCELERATE, + KEY_DECELERATE, +}; + +class CSimpleKeyInterp : public Vector +{ +public: + CSimpleKeyInterp( float t, simplekeyinterp_t interp, float x, float y = 0, float z = 0 ) : Vector( x, y, z ) + { + m_interp = interp; + m_keyTime = t; + } + + float GetTime() const { return m_keyTime; } + + // out = t*start + (1-t) * end (may be splinear or linear) + static void Interp( Vector &out, float t, const CSimpleKeyInterp &start, const CSimpleKeyInterp &end ); + + float m_keyTime; + simplekeyinterp_t m_interp; +}; + + +class CSimpleKeyList +{ +public: + int Insert( const CSimpleKeyInterp &key ); + bool Interp( Vector &out, float t ); + + CUtlVector<CSimpleKeyInterp> m_list; +}; + +#endif // SIMPLE_KEYS_H |