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.

46 lines
1.1 KiB

  1. //========= Copyright � 1996-2009, Valve Corporation, All rights reserved. ============//
  2. #ifndef _IPLAYERMANAGER_H_
  3. #define _IPLAYERMANAGER_H_
  4. class IPlayer;
  5. class IPlayerFriend;
  6. class IPlayerLocal;
  7. abstract_class IPlayerManager
  8. {
  9. public:
  10. //
  11. // EnableServersUpdate
  12. // controls whether friends data is being updated in the background
  13. //
  14. virtual void EnableFriendsUpdate( bool bEnable ) = 0;
  15. //
  16. // GetLocalPlayer
  17. // returns a local player interface for a given controller index
  18. //
  19. virtual IPlayerLocal * GetLocalPlayer( int iController ) = 0;
  20. //
  21. // GetNumFriends
  22. // returns number of friends discovered and for which data is available
  23. //
  24. virtual int GetNumFriends() = 0;
  25. //
  26. // GetFriend
  27. // returns player interface to the given friend or NULL if friend not found or not available
  28. //
  29. virtual IPlayerFriend * GetFriendByIndex( int index ) = 0;
  30. virtual IPlayerFriend * GetFriendByXUID( XUID xuid ) = 0;
  31. //
  32. // FindPlayer
  33. // returns player interface by player's XUID or NULL if player not found or not available
  34. //
  35. virtual IPlayer * FindPlayer( XUID xuid ) = 0;
  36. };
  37. #endif