summaryrefslogtreecommitdiff
path: root/utils/tfstats/award.h
blob: 6ed6d0895eb6ee6d4e6b2dd5af1a6407ff84f691 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Interface of CAward, the base class for all awards
//
// $Workfile:     $
// $Date:         $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#ifndef AWARD_H
#define AWARD_H
#ifdef WIN32
#pragma once
#endif
#pragma warning(disable :4786)
#include "Report.h"
#include <string>


//------------------------------------------------------------------------------------------------------
// Purpose: CAward is the base class for all awards, it is in turn a subclass of
// CReport. This class handles all the boring details of writing out the awards
// and things, so that the subclasses need only specify the name of the award
// and who won it, then this class will take care of the rest
//------------------------------------------------------------------------------------------------------
class CAward: public CReport
{
//from CReport:
protected:
	virtual void generate();
protected:
	std::string awardName;
	std::string winnerName;
	PID winnerID;
	bool fNoWinner;

	CAward(char* name);
	
	
	virtual void extendedinfo(CHTMLFile& html){};
	virtual void noWinner(CHTMLFile& html){};

	
public:
	virtual void getWinner(){}
	virtual void writeHTML(CHTMLFile& html);
	
	virtual ~CAward();

};


#endif // AWARD_H