aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/c_team_train_watcher.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/c_team_train_watcher.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/c_team_train_watcher.h')
-rw-r--r--sp/src/game/client/c_team_train_watcher.h152
1 files changed, 76 insertions, 76 deletions
diff --git a/sp/src/game/client/c_team_train_watcher.h b/sp/src/game/client/c_team_train_watcher.h
index 4f426c37..8887d22b 100644
--- a/sp/src/game/client/c_team_train_watcher.h
+++ b/sp/src/game/client/c_team_train_watcher.h
@@ -1,77 +1,77 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================
-
-#ifndef C_TEAM_TRAIN_WATCHER_H
-#define C_TEAM_TRAIN_WATCHER_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "c_baseentity.h"
-#include "c_physicsprop.h"
-#ifdef GLOWS_ENABLE
-#include "glow_outline_effect.h"
-#endif // GLOWS_ENABLE
-
-class C_TeamTrainWatcher : public C_BaseEntity
-{
- DECLARE_CLASS( C_TeamTrainWatcher, C_BaseEntity );
-public:
- DECLARE_CLIENTCLASS();
-
- C_TeamTrainWatcher();
- ~C_TeamTrainWatcher();
-
- virtual void OnPreDataChanged( DataUpdateType_t updateType );
- virtual void OnDataChanged( DataUpdateType_t updateType );
-
- virtual void Spawn( void );
- virtual void UpdateOnRemove( void );
-
- float GetTotalProgress( void ) { return m_flTotalProgress; }
- int GetSpeedLevel( void ) { return m_iTrainSpeedLevel; }
-
- // IClientThinkable overrides.
-public:
- virtual void ClientThink();
-
-#ifdef GLOWS_ENABLE
-private:
- void UpdateGlowEffect( void );
- void DestroyGlowEffect( void );
-#endif // GLOWS_ENABLE
-
-private:
-
- // === Networked Data ===
-
- // percent distance to cp1, distance to cp2, etc
- // adds up to 1.0
- //CNetworkArray( float, m_flDistances, MAX_CONTROL_POINTS );
-
- // current total progress, percentage
- CNetworkVar( float, m_flTotalProgress );
- float m_flOldProgress;
-
- CNetworkVar( int, m_iTrainSpeedLevel );
- int m_iOldTrainSpeedLevel;
-
- CNetworkVar( float, m_flRecedeTime );
- float m_flOldRecedeTime;
-
- CNetworkVar( int, m_nNumCappers );
- int m_nOldNumCappers;
-
-#ifdef GLOWS_ENABLE
- EHANDLE m_hGlowEnt;
- EHANDLE m_hOldGlowEnt;
- CGlowObject *m_pGlowEffect;
-#endif // GLOWS_ENABLE
-};
-
-extern CUtlVector< CHandle<C_TeamTrainWatcher> > g_hTrainWatchers;
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef C_TEAM_TRAIN_WATCHER_H
+#define C_TEAM_TRAIN_WATCHER_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "c_baseentity.h"
+#include "c_physicsprop.h"
+#ifdef GLOWS_ENABLE
+#include "glow_outline_effect.h"
+#endif // GLOWS_ENABLE
+
+class C_TeamTrainWatcher : public C_BaseEntity
+{
+ DECLARE_CLASS( C_TeamTrainWatcher, C_BaseEntity );
+public:
+ DECLARE_CLIENTCLASS();
+
+ C_TeamTrainWatcher();
+ ~C_TeamTrainWatcher();
+
+ virtual void OnPreDataChanged( DataUpdateType_t updateType );
+ virtual void OnDataChanged( DataUpdateType_t updateType );
+
+ virtual void Spawn( void );
+ virtual void UpdateOnRemove( void );
+
+ float GetTotalProgress( void ) { return m_flTotalProgress; }
+ int GetSpeedLevel( void ) { return m_iTrainSpeedLevel; }
+
+ // IClientThinkable overrides.
+public:
+ virtual void ClientThink();
+
+#ifdef GLOWS_ENABLE
+private:
+ void UpdateGlowEffect( void );
+ void DestroyGlowEffect( void );
+#endif // GLOWS_ENABLE
+
+private:
+
+ // === Networked Data ===
+
+ // percent distance to cp1, distance to cp2, etc
+ // adds up to 1.0
+ //CNetworkArray( float, m_flDistances, MAX_CONTROL_POINTS );
+
+ // current total progress, percentage
+ CNetworkVar( float, m_flTotalProgress );
+ float m_flOldProgress;
+
+ CNetworkVar( int, m_iTrainSpeedLevel );
+ int m_iOldTrainSpeedLevel;
+
+ CNetworkVar( float, m_flRecedeTime );
+ float m_flOldRecedeTime;
+
+ CNetworkVar( int, m_nNumCappers );
+ int m_nOldNumCappers;
+
+#ifdef GLOWS_ENABLE
+ EHANDLE m_hGlowEnt;
+ EHANDLE m_hOldGlowEnt;
+ CGlowObject *m_pGlowEffect;
+#endif // GLOWS_ENABLE
+};
+
+extern CUtlVector< CHandle<C_TeamTrainWatcher> > g_hTrainWatchers;
+
#endif //C_TEAM_TRAIN_WATCHER_H \ No newline at end of file