diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/imapoverview.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/imapoverview.h')
| -rw-r--r-- | public/imapoverview.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/public/imapoverview.h b/public/imapoverview.h new file mode 100644 index 0000000..ec6c3c5 --- /dev/null +++ b/public/imapoverview.h @@ -0,0 +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 +}; + +#endif // IMAPOVERVIEW_H
\ No newline at end of file |