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/tfc/tfc_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/tfc/tfc_team.h')
| -rw-r--r-- | game/server/tfc/tfc_team.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/game/server/tfc/tfc_team.h b/game/server/tfc/tfc_team.h new file mode 100644 index 0000000..79953c7 --- /dev/null +++ b/game/server/tfc/tfc_team.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Team management class. Contains all the details for a specific team +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TFC_TEAM_H +#define TFC_TEAM_H + +#ifdef _WIN32 +#pragma once +#endif + + +#include "utlvector.h" +#include "team.h" +#include "tfc_shareddefs.h" + + +//----------------------------------------------------------------------------- +// Purpose: Team Manager +//----------------------------------------------------------------------------- +class CTFCTeam : public CTeam +{ + DECLARE_CLASS( CTFCTeam, CTeam ); + DECLARE_SERVERCLASS(); + +public: + + // Initialization + virtual void Init( const char *pName, int iNumber ); + color32 GetTeamColor(); +}; + + +extern CTFCTeam *GetGlobalTFCTeam( int iIndex ); + +void TeamFortress_TeamShowScores(BOOL bLong, CBasePlayer *pPlayer); +int TeamFortress_TeamGetScoreFrags(int tno); + +// Colors for each team. +typedef struct +{ + int topColor; + int bottomColor; +} team_color_t; + +extern Vector rgbcolors[5]; +extern team_color_t teamcolors[5][PC_LASTCLASS]; // Colors for each of the 4 teams +extern int number_of_teams; // This is incremented for each map as info_player_teamspawn are created. +extern const char *teamnames[5]; +#define g_szTeamColors teamnames + +color32 Vector255ToRGBColor( const Vector &vColor ); + + +#endif // TF_TEAM_H |