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/public/imapoverview.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/public/imapoverview.h')
| -rw-r--r-- | sp/src/public/imapoverview.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/sp/src/public/imapoverview.h b/sp/src/public/imapoverview.h index e4408749..ec6c3c53 100644 --- a/sp/src/public/imapoverview.h +++ b/sp/src/public/imapoverview.h @@ -1,58 +1,58 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-#if !defined( IMAPOVERVIEW_H )
-#define IMAPOVERVIEW_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-// #include "interface.h"
-
-// #define INTERFACEVERSION_HLTVPANEL "HLTVPANEL001"
-
-//-----------------------------------------------------------------------------
-// Purpose: interface for map overview panel
-//-----------------------------------------------------------------------------
-
-#include "mathlib/vector.h"
-#include "mathlib/vector2d.h"
-
-class IMapOverview // : public IBaseInterface
-{
-public:
- virtual ~IMapOverview( void ) {};
-
- virtual void SetVisible(bool state) = 0; // set map panel visible
- virtual void SetBounds(int x, int y, int wide, int tall) = 0; // set pos & size
- virtual void SetZoom( float zoom ) = 0; // set zoom
- virtual void SetTime( float time ) = 0; // set game time
- virtual void SetAngle( float angle) = 0; // set map orientation
- virtual void SetFollowAngle(bool state) = 0; // if true, map rotates with spectators view
- virtual void SetCenter( Vector2D &mappos) = 0; // set map pos in center of panel
- virtual void SetPlayerPositions(int index, const Vector &position, const QAngle &angle) = 0; // update player position
- virtual Vector2D WorldToMap( Vector &worldpos ) = 0; // convert 3d world to 2d map pos
-
- virtual bool IsVisible( void )= 0; // true if MapOverview is visible
- virtual void GetBounds(int& x, int& y, int& wide, int& tall) = 0; // get current pos & size
- virtual float GetZoom( void )= 0;
-
- // deatils properties
- virtual void ShowPlayerNames(bool state) = 0; // show player names under icons
- virtual void ShowTracers(bool state) = 0; // show shooting traces as lines
- virtual void ShowExplosions(bool state) = 0; // show, smoke, flash & HE grenades
- virtual void ShowHealth(bool state) = 0; // show player health under icon
- virtual void ShowHurts(bool state) = 0; // show player icon flashing if player is hurt
- virtual void ShowTracks(float seconds) = 0; // show player trails for n seconds
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#if !defined( IMAPOVERVIEW_H ) +#define IMAPOVERVIEW_H +#ifdef _WIN32 +#pragma once +#endif + +// #include "interface.h" + +// #define INTERFACEVERSION_HLTVPANEL "HLTVPANEL001" + +//----------------------------------------------------------------------------- +// Purpose: interface for map overview panel +//----------------------------------------------------------------------------- + +#include "mathlib/vector.h" +#include "mathlib/vector2d.h" + +class IMapOverview // : public IBaseInterface +{ +public: + virtual ~IMapOverview( void ) {}; + + virtual void SetVisible(bool state) = 0; // set map panel visible + virtual void SetBounds(int x, int y, int wide, int tall) = 0; // set pos & size + virtual void SetZoom( float zoom ) = 0; // set zoom + virtual void SetTime( float time ) = 0; // set game time + virtual void SetAngle( float angle) = 0; // set map orientation + virtual void SetFollowAngle(bool state) = 0; // if true, map rotates with spectators view + virtual void SetCenter( Vector2D &mappos) = 0; // set map pos in center of panel + virtual void SetPlayerPositions(int index, const Vector &position, const QAngle &angle) = 0; // update player position + virtual Vector2D WorldToMap( Vector &worldpos ) = 0; // convert 3d world to 2d map pos + + virtual bool IsVisible( void )= 0; // true if MapOverview is visible + virtual void GetBounds(int& x, int& y, int& wide, int& tall) = 0; // get current pos & size + virtual float GetZoom( void )= 0; + + // deatils properties + virtual void ShowPlayerNames(bool state) = 0; // show player names under icons + virtual void ShowTracers(bool state) = 0; // show shooting traces as lines + virtual void ShowExplosions(bool state) = 0; // show, smoke, flash & HE grenades + virtual void ShowHealth(bool state) = 0; // show player health under icon + virtual void ShowHurts(bool state) = 0; // show player icon flashing if player is hurt + virtual void ShowTracks(float seconds) = 0; // show player trails for n seconds +}; + #endif // IMAPOVERVIEW_H
\ No newline at end of file |