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.

49 lines
1.1 KiB

  1. //===== Copyright � 1996-2009, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef _GAME_H_
  7. #define _GAME_H_
  8. #include "mm_framework.h"
  9. #include "matchmaking/igame.h"
  10. #include "utlvector.h"
  11. //In an idea world game is manageing all of the aspects of the game session, however in our case
  12. //it will serve as an interface into the engine and matchmaking to get the information we need.
  13. class CMatchGame : public IMatchGame
  14. {
  15. public:
  16. CMatchGame();
  17. ~CMatchGame();
  18. //IMatchGame
  19. virtual void Reset();
  20. virtual XNKID GetXNKID();
  21. virtual int GetNumPlayers();
  22. virtual IPlayer * GetPlayer(int index);
  23. virtual void AddPlayer( XUID xuid, int pExperience[ MATCH_MAX_DIFFICULTIES ] = NULL, int pSkills[ MATCH_MAX_DIFFICULTIES ][ MATCH_MAX_SKILL_FIELDS ] = NULL );
  24. virtual void RemovePlayer( XUID xuid );
  25. virtual void RemoveAllPlayers( );
  26. virtual int GetAggregateExperience( );
  27. virtual int GetAggregateSkill( int iSkillType );
  28. private:
  29. typedef CUtlVector< IPlayer * > IPlayerList_t;
  30. IPlayerList_t m_PlayerList;
  31. };
  32. #endif