Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #if !defined( IMAPOVERVIEW_H )
  14. #define IMAPOVERVIEW_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. // #include "interface.h"
  19. // #define INTERFACEVERSION_HLTVPANEL "HLTVPANEL001"
  20. //-----------------------------------------------------------------------------
  21. // Purpose: interface for map overview panel
  22. //-----------------------------------------------------------------------------
  23. #include "mathlib/vector.h"
  24. #include "mathlib/vector2d.h"
  25. class IMapOverview // : public IBaseInterface
  26. {
  27. public:
  28. virtual ~IMapOverview( void ) {};
  29. virtual void SetVisible(bool state) = 0; // set map panel visible
  30. virtual void SetBounds(int x, int y, int wide, int tall) = 0; // set pos & size
  31. virtual void SetZoom( float zoom ) = 0; // set zoom
  32. virtual void SetTime( float time ) = 0; // set game time
  33. virtual void SetAngle( float angle) = 0; // set map orientation
  34. virtual void SetFollowAngle(bool state) = 0; // if true, map rotates with spectators view
  35. virtual void SetCenter( Vector2D &mappos) = 0; // set map pos in center of panel
  36. virtual void SetPlayerPositions(int index, const Vector &position, const QAngle &angle) = 0; // update player position
  37. virtual Vector2D WorldToMap( Vector &worldpos ) = 0; // convert 3d world to 2d map pos
  38. virtual bool IsVisible( void )= 0; // true if MapOverview is visible
  39. virtual void GetBounds(int& x, int& y, int& wide, int& tall) = 0; // get current pos & size
  40. virtual float GetZoom( void )= 0;
  41. // deatils properties
  42. virtual void ShowPlayerNames(bool state) = 0; // show player names under icons
  43. virtual void ShowTracers(bool state) = 0; // show shooting traces as lines
  44. virtual void ShowExplosions(bool state) = 0; // show, smoke, flash & HE grenades
  45. virtual void ShowHealth(bool state) = 0; // show player health under icon
  46. virtual void ShowHurts(bool state) = 0; // show player icon flashing if player is hurt
  47. virtual void ShowTracks(float seconds) = 0; // show player trails for n seconds
  48. };
  49. #endif // IMAPOVERVIEW_H