diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/tfstats/award.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/tfstats/award.h')
| -rw-r--r-- | utils/tfstats/award.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/utils/tfstats/award.h b/utils/tfstats/award.h new file mode 100644 index 0000000..6ed6d08 --- /dev/null +++ b/utils/tfstats/award.h @@ -0,0 +1,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 |