summaryrefslogtreecommitdiff
path: root/utils/tfstats/talkativeaward.h
blob: 6fe04d03e4a4f44d460199b9658201feb0bd758f (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Interface of CTalkativeAward
//
// $Workfile:     $
// $Date:         $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#ifndef TALKATIVEAWARD_H
#define TALKATIVEAWARD_H
#ifdef WIN32
#pragma once
#endif
#include "Award.h"
#include <map>
using namespace std;

//------------------------------------------------------------------------------------------------------
// Purpose: CTalkativeAward is an award given to the player who speaks the most
// words. 
//------------------------------------------------------------------------------------------------------
class CTalkativeAward: public CAward
{
protected:
	map<PID,int> numtalks;
	void noWinner(CHTMLFile& html);
	void extendedinfo(CHTMLFile& html);
	
	map<int,string> fulltalktext;
public:
	explicit CTalkativeAward():CAward("Bigmouth"){}
	void getWinner();
};
#endif // TALKATIVEAWARD_H