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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Interface of the CWeaponAward class, and its subclasses
//
// $Workfile: $
// $Date: $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#ifndef WEAPONAWARDS_H
#define WEAPONAWARDS_H
#ifdef WIN32
#pragma once
#endif
#include "Award.h"
//------------------------------------------------------------------------------------------------------
// Purpose: CWeaponAward is the superclass for any award that is based simply
// on number of kills with a specific weapon.
//------------------------------------------------------------------------------------------------------
class CWeaponAward: public CAward
{
protected:
map<PID,int> accum;
char* killtype;
public:
CWeaponAward(char* awardname, char* killname):CAward(awardname),killtype(killname){}
void getWinner();
};
//------------------------------------------------------------------------------------------------------
// Purpose: CFlamethrowerAward is an award given to the player who gets the
// most kills with "flames"
//------------------------------------------------------------------------------------------------------
class CFlamethrowerAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
explicit CFlamethrowerAward():CWeaponAward("Blaze of Glory","flames"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CAssaultCannonAward is an award given to the player who gets the
// most kills with "ac" (the assault cannon)
//------------------------------------------------------------------------------------------------------
class CAssaultCannonAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
explicit CAssaultCannonAward():CWeaponAward("Swiss Cheese","ac"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CKnifeAward is an award given to the player who gets the most kills
// with the "knife"
//------------------------------------------------------------------------------------------------------
class CKnifeAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
explicit CKnifeAward():CWeaponAward("Assassin","knife"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CRocketryAward is an award given to the player who gets the most kills
// with "rocket"s.
//------------------------------------------------------------------------------------------------------
class CRocketryAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
explicit CRocketryAward():CWeaponAward("Rocketry","rocket"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CGrenadierAward is an award given to the player who gets the most
// kills with "gl_grenade"s
//------------------------------------------------------------------------------------------------------
class CGrenadierAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
explicit CGrenadierAward():CWeaponAward("Grenadier","gl_grenade"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CDemolitionsAward is an award given to the player who kills the most
// people with "detpack"s.
//------------------------------------------------------------------------------------------------------
class CDemolitionsAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
explicit CDemolitionsAward():CWeaponAward("Demolitions","detpack"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CBiologicalWarfareAward is given to the player who kills the most
// people with "infection"s
//------------------------------------------------------------------------------------------------------
class CBiologicalWarfareAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
CBiologicalWarfareAward():CWeaponAward("Biological Warfare","infection"){}
};
//------------------------------------------------------------------------------------------------------
// Purpose: CBestSentryAward is given to the player who kills the most people
// with sentry guns that he/she created ("sentrygun")
//------------------------------------------------------------------------------------------------------
class CBestSentryAward: public CWeaponAward
{
protected:
void noWinner(CHTMLFile& html);
void extendedinfo(CHTMLFile& html);
public:
CBestSentryAward():CWeaponAward("Best Sentry Placement","sentrygun"){}
};
#endif // WEAPONAWARDS_H
|