mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-15 13:16:58 +00:00
1
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user