diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/igameresources.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/igameresources.h')
| -rw-r--r-- | sp/src/public/igameresources.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sp/src/public/igameresources.h b/sp/src/public/igameresources.h new file mode 100644 index 00000000..5ec7a0f0 --- /dev/null +++ b/sp/src/public/igameresources.h @@ -0,0 +1,44 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: IGameResources interface
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef IGAMERESOURCES_H
+#define IGAMERESOURCES_H
+
+class Color;
+class Vector;
+
+
+abstract_class IGameResources
+{
+public:
+ virtual ~IGameResources() {};
+
+ // Team data access
+ virtual const char *GetTeamName( int index ) = 0;
+ virtual int GetTeamScore( int index ) = 0;
+ virtual const Color& GetTeamColor( int index ) = 0;
+
+ // Player data access
+ virtual bool IsConnected( int index ) = 0;
+ virtual bool IsAlive( int index ) = 0;
+ virtual bool IsFakePlayer( int index ) = 0;
+ virtual bool IsLocalPlayer( int index ) = 0;
+
+ virtual const char *GetPlayerName( int index ) = 0;
+ virtual int GetPlayerScore( int index ) = 0;
+ virtual int GetPing( int index ) = 0;
+// virtual int GetPacketloss( int index ) = 0;
+ virtual int GetDeaths( int index ) = 0;
+ virtual int GetFrags( int index ) = 0;
+ virtual int GetTeam( int index ) = 0;
+ virtual int GetHealth( int index ) = 0;
+};
+
+extern IGameResources *GameResources( void ); // singelton accessor
+
+#endif
+
|