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 /mp/src/game/shared/sdk/sdk_gamerules.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 'mp/src/game/shared/sdk/sdk_gamerules.h')
| -rw-r--r-- | mp/src/game/shared/sdk/sdk_gamerules.h | 176 |
1 files changed, 88 insertions, 88 deletions
diff --git a/mp/src/game/shared/sdk/sdk_gamerules.h b/mp/src/game/shared/sdk/sdk_gamerules.h index 3c69e806..df1b79b1 100644 --- a/mp/src/game/shared/sdk/sdk_gamerules.h +++ b/mp/src/game/shared/sdk/sdk_gamerules.h @@ -1,88 +1,88 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: The TF Game rules object
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef SDK_GAMERULES_H
-#define SDK_GAMERULES_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-#include "teamplay_gamerules.h"
-#include "convar.h"
-#include "gamevars_shared.h"
-
-#ifdef CLIENT_DLL
- #include "c_baseplayer.h"
-#else
- #include "player.h"
-#endif
-
-
-#ifdef CLIENT_DLL
- #define CSDKGameRules C_SDKGameRules
- #define CSDKGameRulesProxy C_SDKGameRulesProxy
-#endif
-
-
-class CSDKGameRulesProxy : public CGameRulesProxy
-{
-public:
- DECLARE_CLASS( CSDKGameRulesProxy, CGameRulesProxy );
- DECLARE_NETWORKCLASS();
-};
-
-
-class CSDKGameRules : public CTeamplayRules
-{
-public:
- DECLARE_CLASS( CSDKGameRules, CTeamplayRules );
-
- virtual bool ShouldCollide( int collisionGroup0, int collisionGroup1 );
-
- virtual int PlayerRelationship( CBaseEntity *pPlayer, CBaseEntity *pTarget );
- virtual bool IsTeamplay( void ) { return false; }
-
-#ifdef CLIENT_DLL
-
- DECLARE_CLIENTCLASS_NOBASE(); // This makes datatables able to access our private vars.
-
-#else
-
- DECLARE_SERVERCLASS_NOBASE(); // This makes datatables able to access our private vars.
-
- CSDKGameRules();
- virtual ~CSDKGameRules();
-
- virtual bool ClientCommand( CBaseEntity *pEdict, const CCommand &args );
- virtual void RadiusDamage( const CTakeDamageInfo &info, const Vector &vecSrcIn, float flRadius, int iClassIgnore );
- virtual void Think();
-
- virtual const char *GetChatPrefix( bool bTeamOnly, CBasePlayer *pPlayer );
-
-private:
-
- void RadiusDamage( const CTakeDamageInfo &info, const Vector &vecSrcIn, float flRadius, int iClassIgnore, bool bIgnoreWorld );
-
-
-#endif
-};
-
-//-----------------------------------------------------------------------------
-// Gets us at the team fortress game rules
-//-----------------------------------------------------------------------------
-
-inline CSDKGameRules* SDKGameRules()
-{
- return static_cast<CSDKGameRules*>(g_pGameRules);
-}
-
-
-#endif // SDK_GAMERULES_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: The TF Game rules object +// +// $Workfile: $ +// $Date: $ +// $NoKeywords: $ +//=============================================================================// + +#ifndef SDK_GAMERULES_H +#define SDK_GAMERULES_H + +#ifdef _WIN32 +#pragma once +#endif + + +#include "teamplay_gamerules.h" +#include "convar.h" +#include "gamevars_shared.h" + +#ifdef CLIENT_DLL + #include "c_baseplayer.h" +#else + #include "player.h" +#endif + + +#ifdef CLIENT_DLL + #define CSDKGameRules C_SDKGameRules + #define CSDKGameRulesProxy C_SDKGameRulesProxy +#endif + + +class CSDKGameRulesProxy : public CGameRulesProxy +{ +public: + DECLARE_CLASS( CSDKGameRulesProxy, CGameRulesProxy ); + DECLARE_NETWORKCLASS(); +}; + + +class CSDKGameRules : public CTeamplayRules +{ +public: + DECLARE_CLASS( CSDKGameRules, CTeamplayRules ); + + virtual bool ShouldCollide( int collisionGroup0, int collisionGroup1 ); + + virtual int PlayerRelationship( CBaseEntity *pPlayer, CBaseEntity *pTarget ); + virtual bool IsTeamplay( void ) { return false; } + +#ifdef CLIENT_DLL + + DECLARE_CLIENTCLASS_NOBASE(); // This makes datatables able to access our private vars. + +#else + + DECLARE_SERVERCLASS_NOBASE(); // This makes datatables able to access our private vars. + + CSDKGameRules(); + virtual ~CSDKGameRules(); + + virtual bool ClientCommand( CBaseEntity *pEdict, const CCommand &args ); + virtual void RadiusDamage( const CTakeDamageInfo &info, const Vector &vecSrcIn, float flRadius, int iClassIgnore ); + virtual void Think(); + + virtual const char *GetChatPrefix( bool bTeamOnly, CBasePlayer *pPlayer ); + +private: + + void RadiusDamage( const CTakeDamageInfo &info, const Vector &vecSrcIn, float flRadius, int iClassIgnore, bool bIgnoreWorld ); + + +#endif +}; + +//----------------------------------------------------------------------------- +// Gets us at the team fortress game rules +//----------------------------------------------------------------------------- + +inline CSDKGameRules* SDKGameRules() +{ + return static_cast<CSDKGameRules*>(g_pGameRules); +} + + +#endif // SDK_GAMERULES_H |