Counter Strike : Global Offensive Source Code
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.

44 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: IGameResources interface
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IGAMERESOURCES_H
  8. #define IGAMERESOURCES_H
  9. class Color;
  10. class Vector;
  11. abstract_class IGameResources
  12. {
  13. public:
  14. virtual ~IGameResources() {};
  15. // Team data access
  16. virtual const char *GetTeamName( int index ) = 0;
  17. virtual int GetTeamScore( int index ) = 0;
  18. virtual const Color& GetTeamColor( int index ) = 0;
  19. // Player data access
  20. virtual bool IsConnected( int index ) = 0;
  21. virtual bool IsAlive( int index ) = 0;
  22. virtual bool IsFakePlayer( int index ) = 0;
  23. virtual bool IsLocalPlayer( int index ) = 0;
  24. virtual const char *GetPlayerName( int index ) = 0;
  25. virtual int GetKills( int index ) = 0;
  26. virtual int GetPing( int index ) = 0;
  27. // virtual int GetPacketloss( int index ) = 0;
  28. virtual int GetDeaths( int index ) = 0;
  29. virtual int GetFrags( int index ) = 0;
  30. virtual int GetTeam( int index ) = 0;
  31. virtual int GetHealth( int index ) = 0;
  32. };
  33. extern IGameResources *GameResources( void ); // singelton accessor
  34. #endif