blob: 25e16e4d3e907026e938e04b5a67e09476e93b6c (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Interface of CScoreboard
//
// $Workfile: $
// $Date: $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#ifndef SCOREBOARD_H
#define SCOREBOARD_H
#ifdef WIN32
#pragma once
#endif
#pragma warning (disable: 4786)
#include "report.h"
#include <map>
#include <vector>
#include <string>
using namespace std;
//------------------------------------------------------------------------------------------------------
// Purpose: CScoreboard is a report element that outputs a scoreboard that tallies
// up all the kills and deaths for each player. it also displays (and sorts by) a
// player's rank. Rank is defined by how many kills a player got minus how many
// times he died divided by the time he was in the game.
//------------------------------------------------------------------------------------------------------
class CScoreboard : public CReport
{
private:
void init();
public:
explicit CScoreboard(){init();}
void generate();
void writeHTML(CHTMLFile& html);
};
#endif // SCOREBOARD_H
|