aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/imovehelper.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 /mp/src/game/shared/imovehelper.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 'mp/src/game/shared/imovehelper.h')
-rw-r--r--mp/src/game/shared/imovehelper.h230
1 files changed, 115 insertions, 115 deletions
diff --git a/mp/src/game/shared/imovehelper.h b/mp/src/game/shared/imovehelper.h
index 02b17957..a02312de 100644
--- a/mp/src/game/shared/imovehelper.h
+++ b/mp/src/game/shared/imovehelper.h
@@ -1,115 +1,115 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef IMOVEHELPER_H
-#define IMOVEHELPER_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-//-----------------------------------------------------------------------------
-// Forward declarations
-//-----------------------------------------------------------------------------
-
-enum PLAYER_ANIM;
-class IPhysicsSurfaceProps;
-class Vector;
-struct model_t;
-struct cmodel_t;
-struct vcollide_t;
-class CGameTrace;
-enum soundlevel_t;
-
-//-----------------------------------------------------------------------------
-// Purpose: Identifies how submerged in water a player is.
-//-----------------------------------------------------------------------------
-
-enum
-{
- WL_NotInWater=0,
- WL_Feet,
- WL_Waist,
- WL_Eyes
-};
-
-
-//-----------------------------------------------------------------------------
-// An entity identifier that works in both game + client dlls
-//-----------------------------------------------------------------------------
-
-typedef CBaseHandle EntityHandle_t;
-
-
-#define INVALID_ENTITY_HANDLE INVALID_EHANDLE_INDEX
-
-//-----------------------------------------------------------------------------
-// Functions the engine provides to IGameMovement to assist in its movement.
-//-----------------------------------------------------------------------------
-
-abstract_class IMoveHelper
-{
-public:
- // Call this to set the singleton
- static IMoveHelper* GetSingleton( ) { return sm_pSingleton; }
-
- // Methods associated with a particular entity
- virtual char const* GetName( EntityHandle_t handle ) const = 0;
-
- // Adds the trace result to touch list, if contact is not already in list.
- virtual void ResetTouchList( void ) = 0;
- virtual bool AddToTouched( const CGameTrace& tr, const Vector& impactvelocity ) = 0;
- virtual void ProcessImpacts( void ) = 0;
-
- // Numbered line printf
- virtual void Con_NPrintf( int idx, PRINTF_FORMAT_STRING char const* fmt, ... ) = 0;
-
- // These have separate server vs client impementations
- virtual void StartSound( const Vector& origin, int channel, char const* sample, float volume, soundlevel_t soundlevel, int fFlags, int pitch ) = 0;
- virtual void StartSound( const Vector& origin, const char *soundname ) = 0;
- virtual void PlaybackEventFull( int flags, int clientindex, unsigned short eventindex, float delay, Vector& origin, Vector& angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 ) = 0;
-
- // Apply falling damage to m_pHostPlayer based on m_pHostPlayer->m_flFallVelocity.
- virtual bool PlayerFallingDamage( void ) = 0;
-
- // Apply falling damage to m_pHostPlayer based on m_pHostPlayer->m_flFallVelocity.
- virtual void PlayerSetAnimation( PLAYER_ANIM playerAnim ) = 0;
-
- virtual IPhysicsSurfaceProps *GetSurfaceProps( void ) = 0;
-
- virtual bool IsWorldEntity( const CBaseHandle &handle ) = 0;
-
-protected:
- // Inherited classes can call this to set the singleton
- static void SetSingleton( IMoveHelper* pMoveHelper ) { sm_pSingleton = pMoveHelper; }
-
- // Clients shouldn't call delete directly
- virtual ~IMoveHelper() {}
-
- // The global instance
- static IMoveHelper* sm_pSingleton;
-};
-
-//-----------------------------------------------------------------------------
-// Add this to the CPP file that implements the IMoveHelper
-//-----------------------------------------------------------------------------
-
-#define IMPLEMENT_MOVEHELPER() \
- IMoveHelper* IMoveHelper::sm_pSingleton = 0
-
-//-----------------------------------------------------------------------------
-// Call this to set the singleton
-//-----------------------------------------------------------------------------
-
-inline IMoveHelper* MoveHelper( )
-{
- return IMoveHelper::GetSingleton();
-}
-
-
-#endif // IMOVEHELPER_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef IMOVEHELPER_H
+#define IMOVEHELPER_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+//-----------------------------------------------------------------------------
+// Forward declarations
+//-----------------------------------------------------------------------------
+
+enum PLAYER_ANIM;
+class IPhysicsSurfaceProps;
+class Vector;
+struct model_t;
+struct cmodel_t;
+struct vcollide_t;
+class CGameTrace;
+enum soundlevel_t;
+
+//-----------------------------------------------------------------------------
+// Purpose: Identifies how submerged in water a player is.
+//-----------------------------------------------------------------------------
+
+enum
+{
+ WL_NotInWater=0,
+ WL_Feet,
+ WL_Waist,
+ WL_Eyes
+};
+
+
+//-----------------------------------------------------------------------------
+// An entity identifier that works in both game + client dlls
+//-----------------------------------------------------------------------------
+
+typedef CBaseHandle EntityHandle_t;
+
+
+#define INVALID_ENTITY_HANDLE INVALID_EHANDLE_INDEX
+
+//-----------------------------------------------------------------------------
+// Functions the engine provides to IGameMovement to assist in its movement.
+//-----------------------------------------------------------------------------
+
+abstract_class IMoveHelper
+{
+public:
+ // Call this to set the singleton
+ static IMoveHelper* GetSingleton( ) { return sm_pSingleton; }
+
+ // Methods associated with a particular entity
+ virtual char const* GetName( EntityHandle_t handle ) const = 0;
+
+ // Adds the trace result to touch list, if contact is not already in list.
+ virtual void ResetTouchList( void ) = 0;
+ virtual bool AddToTouched( const CGameTrace& tr, const Vector& impactvelocity ) = 0;
+ virtual void ProcessImpacts( void ) = 0;
+
+ // Numbered line printf
+ virtual void Con_NPrintf( int idx, PRINTF_FORMAT_STRING char const* fmt, ... ) = 0;
+
+ // These have separate server vs client impementations
+ virtual void StartSound( const Vector& origin, int channel, char const* sample, float volume, soundlevel_t soundlevel, int fFlags, int pitch ) = 0;
+ virtual void StartSound( const Vector& origin, const char *soundname ) = 0;
+ virtual void PlaybackEventFull( int flags, int clientindex, unsigned short eventindex, float delay, Vector& origin, Vector& angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 ) = 0;
+
+ // Apply falling damage to m_pHostPlayer based on m_pHostPlayer->m_flFallVelocity.
+ virtual bool PlayerFallingDamage( void ) = 0;
+
+ // Apply falling damage to m_pHostPlayer based on m_pHostPlayer->m_flFallVelocity.
+ virtual void PlayerSetAnimation( PLAYER_ANIM playerAnim ) = 0;
+
+ virtual IPhysicsSurfaceProps *GetSurfaceProps( void ) = 0;
+
+ virtual bool IsWorldEntity( const CBaseHandle &handle ) = 0;
+
+protected:
+ // Inherited classes can call this to set the singleton
+ static void SetSingleton( IMoveHelper* pMoveHelper ) { sm_pSingleton = pMoveHelper; }
+
+ // Clients shouldn't call delete directly
+ virtual ~IMoveHelper() {}
+
+ // The global instance
+ static IMoveHelper* sm_pSingleton;
+};
+
+//-----------------------------------------------------------------------------
+// Add this to the CPP file that implements the IMoveHelper
+//-----------------------------------------------------------------------------
+
+#define IMPLEMENT_MOVEHELPER() \
+ IMoveHelper* IMoveHelper::sm_pSingleton = 0
+
+//-----------------------------------------------------------------------------
+// Call this to set the singleton
+//-----------------------------------------------------------------------------
+
+inline IMoveHelper* MoveHelper( )
+{
+ return IMoveHelper::GetSingleton();
+}
+
+
+#endif // IMOVEHELPER_H