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.

63 lines
1.5 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Team management class. Contains all the details for a specific team
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef CS_TEAM_H
  8. #define CS_TEAM_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "utlvector.h"
  13. #include "team.h"
  14. //-----------------------------------------------------------------------------
  15. // Purpose: Team Manager
  16. //-----------------------------------------------------------------------------
  17. class CCSTeam : public CTeam
  18. {
  19. DECLARE_CLASS( CCSTeam, CTeam );
  20. public:
  21. CCSTeam();
  22. virtual ~CCSTeam( void );
  23. DECLARE_SERVERCLASS();
  24. // Initialization
  25. virtual void Init( const char *pName, int iNumber );
  26. virtual void Precache( void );
  27. virtual void Think( void );
  28. void OnRoundPreStart( void );
  29. //-----------------------------------------------------------------------------
  30. // Players
  31. //-----------------------------------------------------------------------------
  32. virtual void AddPlayer( CBasePlayer *pPlayer );
  33. virtual void RemovePlayer( CBasePlayer *pPlayer );
  34. //-----------------------------------------------------------------------------
  35. // Utility funcs
  36. //-----------------------------------------------------------------------------
  37. CCSTeam* GetEnemyTeam();
  38. private:
  39. // Used to distribute resources to a team
  40. float m_flNextResourceTime;
  41. int m_iLastUpdateSentAt;
  42. };
  43. extern CCSTeam *GetGlobalCSTeam( int iIndex );
  44. #endif // TF_TEAM_H