aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/imapoverview.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/imapoverview.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/imapoverview.h')
-rw-r--r--sp/src/public/imapoverview.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/sp/src/public/imapoverview.h b/sp/src/public/imapoverview.h
new file mode 100644
index 00000000..e4408749
--- /dev/null
+++ b/sp/src/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