blob: e2f991fad26c39bb50a6182b473c03046e53d91f (
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
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Interface of CPlayerReport
//
// $Workfile: $
// $Date: $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#ifndef PLAYERREPORT_H
#define PLAYERREPORT_H
#ifdef WIN32
#pragma once
#endif
#include "Player.h"
#include "Report.h"
#include "PlrPersist.h"
//------------------------------------------------------------------------------------------------------
// Purpose: Reports a specific player's stats.
//------------------------------------------------------------------------------------------------------
class CPlayerReport: public CReport
{
private:
CPlayer* pPlayer;
CPlrPersist* pPersist;
int iWhichTeam;
static map<unsigned long,bool> alreadyPersisted;
static map<unsigned long,bool> alreadyWroteCombStats;
bool reportingPersistedPlayer;
void writePersistHTML(CHTMLFile& html);
public:
CPlayerReport(CPlayer* pP,int t):pPlayer(pP),iWhichTeam(t){reportingPersistedPlayer=false;}
CPlayerReport(CPlrPersist* pPP):pPersist(pPP) {iWhichTeam=-1;reportingPersistedPlayer=true;}
virtual void writeHTML(CHTMLFile& html);
};
#endif // PLAYERREPORT_H
|