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/ai_looktarget.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/ai_looktarget.h')
| -rw-r--r-- | sp/src/game/server/ai_looktarget.h | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/sp/src/game/server/ai_looktarget.h b/sp/src/game/server/ai_looktarget.h index 60d0d241..a98ceb0b 100644 --- a/sp/src/game/server/ai_looktarget.h +++ b/sp/src/game/server/ai_looktarget.h @@ -1,47 +1,47 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-#pragma once
-#ifndef AI_LOOKTARGET_H
-#define AI_LOOKTARGET_H
-
-#define SF_LOOKTARGET_ONLYONCE 0x00000001
-
-//=============================================================================
-//=============================================================================
-class CAI_LookTarget : public CPointEntity
-{
-public:
- DECLARE_CLASS( CAI_LookTarget, CPointEntity );
- DECLARE_DATADESC();
-
- CAI_LookTarget() { m_flTimeNextAvailable = -1; }
-
- // Debugging
- int DrawDebugTextOverlays(void);
-
- // Accessors & Availability
- bool IsEligible( CBaseEntity *pLooker );
- bool IsEnabled() { return !m_bDisabled; }
- bool IsAvailable() { return (gpGlobals->curtime > m_flTimeNextAvailable); }
- void Reserve( float flDuration );
-
- // Searching
- static CAI_LookTarget *GetFirstLookTarget();
- static CAI_LookTarget *GetNextLookTarget( CAI_LookTarget *pCurrentTarget );
-
- int m_iContext;
- int m_iPriority;
-
- void Enable() { m_bDisabled = false; }
- void Disable() { m_bDisabled = true; }
-
-private:
- bool m_bDisabled;
- float m_flTimeNextAvailable;
- float m_flMaxDist;
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// +#pragma once +#ifndef AI_LOOKTARGET_H +#define AI_LOOKTARGET_H + +#define SF_LOOKTARGET_ONLYONCE 0x00000001 + +//============================================================================= +//============================================================================= +class CAI_LookTarget : public CPointEntity +{ +public: + DECLARE_CLASS( CAI_LookTarget, CPointEntity ); + DECLARE_DATADESC(); + + CAI_LookTarget() { m_flTimeNextAvailable = -1; } + + // Debugging + int DrawDebugTextOverlays(void); + + // Accessors & Availability + bool IsEligible( CBaseEntity *pLooker ); + bool IsEnabled() { return !m_bDisabled; } + bool IsAvailable() { return (gpGlobals->curtime > m_flTimeNextAvailable); } + void Reserve( float flDuration ); + + // Searching + static CAI_LookTarget *GetFirstLookTarget(); + static CAI_LookTarget *GetNextLookTarget( CAI_LookTarget *pCurrentTarget ); + + int m_iContext; + int m_iPriority; + + void Enable() { m_bDisabled = false; } + void Disable() { m_bDisabled = true; } + +private: + bool m_bDisabled; + float m_flTimeNextAvailable; + float m_flMaxDist; +}; + #endif//AI_LOOKTARGET_H
\ No newline at end of file |