blob: 79953c70d917403290bc38cc9fc20da2cf2c70e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
|