diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/cstrike/cs_team.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/cstrike/cs_team.h')
| -rw-r--r-- | game/server/cstrike/cs_team.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/game/server/cstrike/cs_team.h b/game/server/cstrike/cs_team.h new file mode 100644 index 0000000..683ee9b --- /dev/null +++ b/game/server/cstrike/cs_team.h @@ -0,0 +1,60 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Team management class. Contains all the details for a specific team +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef CS_TEAM_H +#define CS_TEAM_H + +#ifdef _WIN32 +#pragma once +#endif + + +#include "utlvector.h" +#include "team.h" + + +//----------------------------------------------------------------------------- +// Purpose: Team Manager +//----------------------------------------------------------------------------- +class CCSTeam : public CTeam +{ + DECLARE_CLASS( CCSTeam, CTeam ); +public: + virtual ~CCSTeam( void ); + + DECLARE_SERVERCLASS(); + + // Initialization + virtual void Init( const char *pName, int iNumber ); + + virtual void Precache( void ); + virtual void Think( void ); + + //----------------------------------------------------------------------------- + // Players + //----------------------------------------------------------------------------- + virtual void AddPlayer( CBasePlayer *pPlayer ); + virtual void RemovePlayer( CBasePlayer *pPlayer ); + + //----------------------------------------------------------------------------- + // Utility funcs + //----------------------------------------------------------------------------- + CCSTeam* GetEnemyTeam(); + +private: + + // Used to distribute resources to a team + float m_flNextResourceTime; + + int m_iLastUpdateSentAt; +}; + + +extern CCSTeam *GetGlobalTFTeam( int iIndex ); + + +#endif // TF_TEAM_H |