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.
61 lines
1.5 KiB
61 lines
1.5 KiB
![]()
4 years ago
|
//========= 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
|