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/server/fogcontroller.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/server/fogcontroller.h')
| -rw-r--r-- | sp/src/game/server/fogcontroller.h | 202 |
1 files changed, 101 insertions, 101 deletions
diff --git a/sp/src/game/server/fogcontroller.h b/sp/src/game/server/fogcontroller.h index 7081ea82..3a5b716d 100644 --- a/sp/src/game/server/fogcontroller.h +++ b/sp/src/game/server/fogcontroller.h @@ -1,101 +1,101 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef FOGCONTROLLER_H
-#define FOGCONTROLLER_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "playernet_vars.h"
-#include "igamesystem.h"
-
-// Spawn Flags
-#define SF_FOG_MASTER 0x0001
-
-//=============================================================================
-//
-// Class Fog Controller:
-// Compares a set of integer inputs to the one main input
-// Outputs true if they are all equivalant, false otherwise
-//
-class CFogController : public CBaseEntity
-{
-public:
- DECLARE_SERVERCLASS();
- DECLARE_DATADESC();
- DECLARE_CLASS( CFogController, CBaseEntity );
-
- CFogController();
- ~CFogController();
-
- // Parse data from a map file
- virtual void Activate();
- virtual int UpdateTransmitState();
-
- // Input handlers
- void InputSetStartDist(inputdata_t &data);
- void InputSetEndDist(inputdata_t &data);
- void InputTurnOn(inputdata_t &data);
- void InputTurnOff(inputdata_t &data);
- void InputSetColor(inputdata_t &data);
- void InputSetColorSecondary(inputdata_t &data);
- void InputSetFarZ( inputdata_t &data );
- void InputSetAngles( inputdata_t &inputdata );
- void InputSetMaxDensity( inputdata_t &inputdata );
-
- void InputSetColorLerpTo(inputdata_t &data);
- void InputSetColorSecondaryLerpTo(inputdata_t &data);
- void InputSetStartDistLerpTo(inputdata_t &data);
- void InputSetEndDistLerpTo(inputdata_t &data);
-
- void InputStartFogTransition(inputdata_t &data);
-
- int DrawDebugTextOverlays(void);
-
- void SetLerpValues( void );
- void Spawn( void );
-
- bool IsMaster( void ) { return HasSpawnFlags( SF_FOG_MASTER ); }
-
-public:
-
- CNetworkVarEmbedded( fogparams_t, m_fog );
- bool m_bUseAngles;
- int m_iChangedVariables;
-};
-
-//=============================================================================
-//
-// Fog Controller System.
-//
-class CFogSystem : public CAutoGameSystem
-{
-public:
-
- // Creation/Init.
- CFogSystem( char const *name ) : CAutoGameSystem( name )
- {
- m_pMasterController = NULL;
- }
-
- ~CFogSystem()
- {
- m_pMasterController = NULL;
- }
-
- virtual void LevelInitPreEntity();
- virtual void LevelInitPostEntity();
- CFogController *GetMasterFogController( void ) { return m_pMasterController; }
-
-private:
-
- CFogController *m_pMasterController;
-};
-
-CFogSystem *FogSystem( void );
-
-#endif // FOGCONTROLLER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef FOGCONTROLLER_H +#define FOGCONTROLLER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "playernet_vars.h" +#include "igamesystem.h" + +// Spawn Flags +#define SF_FOG_MASTER 0x0001 + +//============================================================================= +// +// Class Fog Controller: +// Compares a set of integer inputs to the one main input +// Outputs true if they are all equivalant, false otherwise +// +class CFogController : public CBaseEntity +{ +public: + DECLARE_SERVERCLASS(); + DECLARE_DATADESC(); + DECLARE_CLASS( CFogController, CBaseEntity ); + + CFogController(); + ~CFogController(); + + // Parse data from a map file + virtual void Activate(); + virtual int UpdateTransmitState(); + + // Input handlers + void InputSetStartDist(inputdata_t &data); + void InputSetEndDist(inputdata_t &data); + void InputTurnOn(inputdata_t &data); + void InputTurnOff(inputdata_t &data); + void InputSetColor(inputdata_t &data); + void InputSetColorSecondary(inputdata_t &data); + void InputSetFarZ( inputdata_t &data ); + void InputSetAngles( inputdata_t &inputdata ); + void InputSetMaxDensity( inputdata_t &inputdata ); + + void InputSetColorLerpTo(inputdata_t &data); + void InputSetColorSecondaryLerpTo(inputdata_t &data); + void InputSetStartDistLerpTo(inputdata_t &data); + void InputSetEndDistLerpTo(inputdata_t &data); + + void InputStartFogTransition(inputdata_t &data); + + int DrawDebugTextOverlays(void); + + void SetLerpValues( void ); + void Spawn( void ); + + bool IsMaster( void ) { return HasSpawnFlags( SF_FOG_MASTER ); } + +public: + + CNetworkVarEmbedded( fogparams_t, m_fog ); + bool m_bUseAngles; + int m_iChangedVariables; +}; + +//============================================================================= +// +// Fog Controller System. +// +class CFogSystem : public CAutoGameSystem +{ +public: + + // Creation/Init. + CFogSystem( char const *name ) : CAutoGameSystem( name ) + { + m_pMasterController = NULL; + } + + ~CFogSystem() + { + m_pMasterController = NULL; + } + + virtual void LevelInitPreEntity(); + virtual void LevelInitPostEntity(); + CFogController *GetMasterFogController( void ) { return m_pMasterController; } + +private: + + CFogController *m_pMasterController; +}; + +CFogSystem *FogSystem( void ); + +#endif // FOGCONTROLLER_H |